playMaker

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

pilot86131

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Reset of Global Variables
« on: August 08, 2016, 09:59:54 AM »
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
    • View Profile
Re: Reset of Global Variables
« Reply #1 on: August 09, 2016, 02: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: 4379
    • View Profile
    • jinxtergames
Re: Reset of Global Variables
« Reply #2 on: August 09, 2016, 05: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.
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions

clandestine

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: Reset of Global Variables
« Reply #3 on: August 09, 2016, 05:40:25 AM »
182 is not compatible with Unity4 anymore?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14342
  • Official Playmaker Support
    • View Profile
Re: Reset of Global Variables
« Reply #4 on: August 10, 2016, 01: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: 253
    • View Profile
Re: Reset of Global Variables
« Reply #5 on: August 10, 2016, 11:56:53 PM »
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

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • Andrii Vintsevych
Re: Reset of Global Variables
« Reply #6 on: August 11, 2016, 05: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, 06:29:29 PM by Gua »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14342
  • Official Playmaker Support
    • View Profile
Re: Reset of Global Variables
« Reply #7 on: August 16, 2016, 11:23:16 AM »
Hi,

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

 Bye,

 Jean