Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Netjera on August 18, 2012, 01:35:36 AM

Title: Imported Global Variables Disappear on Play?
Post by: Netjera on August 18, 2012, 01:35:36 AM
I have a few prefabs I've created which reference one another through global variables.  When I packaged them for later use, I exported the global variables, and included them in the package.

After importing the package into an empty scene, I import the global variables and pull prefabs into the scene from the project list.  Everything shows up properly, all the prefabs link to the right global variables.  All is well.  I run the scene and it doesn't work.  I go back to the scene, check the global variable list, and the variables are gone!

This isn't expected behavior, is it?
Title: Re: Imported Global Variables Disappear on Play?
Post by: mRadek on September 17, 2012, 04:17:56 AM
I have the same problem.
It's very important for me because my publisher is waiting for the game.

HELP, please!!!

I find some solution...
If I create manually any new Global Variable after importing Global Variables it's possible to force saving Global Variables in the project.
So, if you have still problem with erasing GB after Playing scene try this way:
1. import Global Variables
2. create any new Global Variable (you don't need to use it)
3. save scene and project

For me it's working.