playMaker

Author Topic: Game Object variables not saving on exit? [FIXED]  (Read 3637 times)

Talon

  • Playmaker Newbie
  • *
  • Posts: 6
Game Object variables not saving on exit? [FIXED]
« on: June 06, 2011, 02:11:08 PM »
So I have a FSM that I'm using as a placement script for my game where it has a transparent object that follows your cursor and then when you place the object it destroys it's self and creates the right object. The game object that it places is a variable that is available in the inspector. I've made some new prefabs to replace the place holder objects, which are also prefabs, but it seems every time I close unity and open it back up it reverts back to the first game object that I assigned it. I can open different scenes and it keeps the right game objects assigned to the variable.
« Last Edit: October 06, 2011, 04:05:56 PM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Game Object variables not saving on exit?
« Reply #1 on: June 06, 2011, 03:16:55 PM »
There's a bug where changes in variables exposed in the inspector don't always save. The problem is the component isn't marked as dirty (need saving). You can either set the variable value in the Playmaker variables tab instead, or make another edit that marks the component as dirty (e.g., move a state a little).

Sorry for the inconvenience! This is fixed in the next update...

Talon

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Game Object variables not saving on exit?
« Reply #2 on: June 06, 2011, 03:48:53 PM »
Ok thanks!