Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: Talon on June 06, 2011, 02:11:08 PM

Title: Game Object variables not saving on exit? [FIXED]
Post by: Talon 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.
Title: Re: Game Object variables not saving on exit?
Post by: Alex Chouls 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...
Title: Re: Game Object variables not saving on exit?
Post by: Talon on June 06, 2011, 03:48:53 PM
Ok thanks!