playMaker

Poll

Prefab variable changed when game is played

Prefab variable changed when game is played
0 (0%)
I need the function to refresh or clean the FSM
0 (0%)

Total Members Voted: 0

Author Topic: Prefab variable changed when game is played  (Read 1643 times)

qaaz345

  • Playmaker Newbie
  • *
  • Posts: 39
Prefab variable changed when game is played
« on: September 09, 2019, 05:28:05 AM »
The same phenomenon continues even though it is saved after editing a prefab.
can't save editing in playmaker.

I need the function to refresh or clean the FSM... :(

therewillbebrad

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Prefab variable changed when game is played
« Reply #1 on: November 25, 2019, 04:37:08 PM »
I'm also having this same issue. I'm thinking at the moment it has something to do with copying the fsms from another prefab and then reusing them. Because it will start changing completely disconnected prefabs. 

therewillbebrad

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Prefab variable changed when game is played
« Reply #2 on: November 25, 2019, 08:04:13 PM »
I'm thinking I've isolated the issue to copying game objects that have fsms in them. I'm assuming it still has a reference to the original fsm pre copy that is messing with things. The current way I've been fixing these errors is to make a new game object and copy the fsm in to a new fsm and that breaks whatever connection is happening.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Prefab variable changed when game is played
« Reply #3 on: November 26, 2019, 04:01:24 AM »
Hi.
Try restarting unity after changes.

therewillbebrad

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Prefab variable changed when game is played
« Reply #4 on: December 21, 2019, 05:07:59 PM »
Bumping to hopefully get a better solution to this.

daniellogin

  • Full Member
  • ***
  • Posts: 215
Re: Prefab variable changed when game is played
« Reply #5 on: December 21, 2019, 10:16:53 PM »
I had a problem recently which I decided was a result of copying and pasting. Can't remember entirely, but it was doing the wrong thing. I checked the details again and again and it was fine. I moved the states off to the side an remade them exactly the same (without any copying) and they worked.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Prefab variable changed when game is played
« Reply #6 on: December 25, 2019, 08:34:30 PM »
hi.
I noticed that sometimes when changing variables on existing actions in prefabs.
That they are not always saved correctly.

they do show correct in the prefab but when you look on the prefabs that are already in the scene, they show the old values/variables

when placing new or replacing the old ones it shows like they are changed, but some 'when you play the game' are also still using the old values/variables.

on restarting and placing new ones in scene, they seem to work.