playMaker

Author Topic: Global Variables disappearing completely, back at Runtime [EasySave]  (Read 976 times)

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 254
So I have this issue which I thought first it was related to Easy Save but it's not. It happens with all my global variables.

Basically after setup they disappear until you hit play and they are back at runtime, you stop the game and they are 'gone' again.

Steps to reproduce:
1. create global variable
2. setup action with global variable
3. copy global variable (they disappear)
4. hit play (they are back)
5. hit stop (they are gone again)

Can provide video.
Can as well provide test project.
« Last Edit: February 23, 2021, 09:20:04 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Global Variables disappearing completely, back at Runtime
« Reply #1 on: February 23, 2021, 07:49:38 PM »
What version of PlayMaker and Unity?
Can you email me the test project. Thanks!

EDIT: What does "3. copy global variable" mean?
Copy an action that uses the global?
« Last Edit: February 23, 2021, 08:15:23 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Global Variables disappearing completely, back at Runtime
« Reply #2 on: February 23, 2021, 09:19:34 PM »
Thanks for sending the project. I took a look and EasySave has some custom code to hide the Type selector that PlayMaker would normally show in this case (above the variable selector). It's using reflection to kind of hack PlayMaker and I think it doesn't play nice with the 1.9.1 update. There's a simpler way to hide the type selector that they should probably be using. I've contacted them directly and hopefully we can get this fixed quickly!

I'm adding [EasySave] to the topic for other EasySave users. But let me know if you're seeing this anywhere else!