playMaker

Author Topic: Reset of Global Variables  (Read 3910 times)

pilot86131

  • Playmaker Newbie
  • *
  • Posts: 2
Reset of Global Variables
« on: August 08, 2016, 12:59:54 PM »
Hello. I updated to 1.8.2 and I have problem with global variables. Variables reset value to null at load scene if in this scene have prefab with FSM, which use this variable. It is working only for prefabs.

pilot86131

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Reset of Global Variables
« Reply #1 on: August 09, 2016, 05:24:53 AM »
I did more tests. This occurs when there is action in the Prefab that contains a variable public FsmOwnerDefault. And if the value of this variable is a global variable, it is reset when loading scenes. It works on an empty project! I can send it. For me, this is a critical bug.
Unity 4.7.0.

Sorry for my bad English

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Reset of Global Variables
« Reply #2 on: August 09, 2016, 08:13:40 AM »
Hi,
The reason might be that your unity version is below version 5.
PM 1.8+ is designed for unity 5+

When you update your project, make sure you have a backup copy.

clandestine

  • Sr. Member
  • ****
  • Posts: 255
    • ЯKD.ZONE
Re: Reset of Global Variables
« Reply #3 on: August 09, 2016, 08:40:25 AM »
182 is not compatible with Unity4 anymore?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Reset of Global Variables
« Reply #4 on: August 10, 2016, 04:14:47 AM »
Hi,

 1.8.2 is compatible with Unity 4.6+, so this should not be a problem.

Currently investigating and trying to repro this issue.

 Bye,

 Jean

clandestine

  • Sr. Member
  • ****
  • Posts: 255
    • ЯKD.ZONE
Re: Reset of Global Variables
« Reply #5 on: August 11, 2016, 02:56:53 AM »
1.8.2 is compatible with Unity 4.6+, so this should not be a problem.

Thanks Jean, i got spooked for a moment there :D

Gua

  • Beta Group
  • Sr. Member
  • *
  • Posts: 309
    • Andrii Vintsevych
Re: Reset of Global Variables
« Reply #6 on: August 11, 2016, 08:20:52 PM »
@jeanfabre, I experience same issue after 1.8.2 upgrade. Globals reset on load scene. Unity 5.2.4

« Last Edit: August 11, 2016, 09:29:29 PM by Gua »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Reset of Global Variables
« Reply #7 on: August 16, 2016, 02:23:16 PM »
Hi,

 yes, we are looking into this. Thanks for the taking the time to make a screencase :)

 Bye,

 Jean