playMaker

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

Talon

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
Game Object variables not saving on exit? [FIXED]
« on: June 06, 2011, 11:11:08 AM »
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, 01:05:56 PM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3207
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Game Object variables not saving on exit?
« Reply #1 on: June 06, 2011, 12: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
    • View Profile
Re: Game Object variables not saving on exit?
« Reply #2 on: June 06, 2011, 12:48:53 PM »
Ok thanks!