playMaker

Author Topic: Renaming variables in templates resulting in lost data  (Read 2210 times)

Anders

  • Beta Group
  • Playmaker Newbie
  • *
  • Posts: 3
Renaming variables in templates resulting in lost data
« on: December 23, 2015, 12:03:11 AM »
We use Templates extensively whereby we expose certain variables in the Inspector and drag in different game objects/textures into the exposed variables on a per-scene basis. For example, one Template will have an exposed Game Object that is null by default, but it ends up being populated by a variety of different game objects as required on a per-scene basis.

This worked great for creating easy-to-update systems UNTIL today when we discovered that if we rename certain variables in a template -- namely Game Object and Texture variables -- and then refresh the template, it effectively resets/clears any of the variables project wide. So all those game objects we linked up to this template in our many (many) scenes now return None, losing their scene-specific connections. It seems if we rename the variable back to its old name, it thankfully fixes the issue, and the Game Objects are re-linked.

Still, this is a big concern to us as for our project where we deal with many scenes and many templates. If these connections were lost, we'd be in a lot of trouble.

Ideally, the exposed Inspector variable would not lose its value, regardless of what the default value of the variable may be, or if the variable is renamed. This seems to be the case with String, Float, Int variables, but when it comes to Game Objects and Textures, it doesn't work this way.

Is this the intended behaviour or a bug? Is there any way to rename variables without this issue arising?

----

Unity Pro 5.2.3 64bit
Playmaker 1.7.8.3
Windows 10 64bit
« Last Edit: December 23, 2015, 12:11:26 AM by Anders »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Renaming variables in templates resulting in lost data
« Reply #1 on: December 23, 2015, 03:41:52 AM »
Hi,

Can you file a bug via the but report, this is important to get a proper look at this indeed.

 Bye,

 Jean

Anders

  • Beta Group
  • Playmaker Newbie
  • *
  • Posts: 3
Re: Renaming variables in templates resulting in lost data
« Reply #2 on: January 05, 2016, 07:45:30 PM »
Sorry for the delay; away for the holidays.
I've filed a bug report with repro steps. ID 1386.

Thanks!