playMaker

Author Topic: Imported Global Variables Disappear on Play?  (Read 1939 times)

Netjera

  • Playmaker Newbie
  • *
  • Posts: 41
Imported Global Variables Disappear on Play?
« 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?

mRadek

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Imported Global Variables Disappear on Play?
« Reply #1 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.
« Last Edit: September 17, 2012, 04:39:09 AM by mRadek »