Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: kapoke69 on December 18, 2017, 03:27:15 PM

Title: template bug issue[solve]
Post by: kapoke69 on December 18, 2017, 03:27:15 PM
i save template
then use template to another obj
the global variable value in template not work propery  while other obj that use global variable(not use template) is fine.

from pic , the groundZPos should be the value from object(which are 30 in my case) but it isn work on run, so i have to use value instead.
Title: Re: template bug issue
Post by: jeanfabre on December 19, 2017, 11:40:54 PM

 It's likely because you have a local variable named exactly as the global variable and PlayMaker will use the local one on new instances. This is a known issue and is not likely to change in the near future, so make sure your global variables do not conflict with your template local variables

Also, inside template, it's likely highly preferrable to not user global variables, and instead create a variable that you expose in the inspector so that the run fsm sees it and you feed your global variable value viz this intermediate template variable.


Title: Re: template bug issue
Post by: kapoke69 on December 21, 2017, 09:14:25 PM
i will check it, thx u. :D
for me , i solve by add wait time to obj at first state then do the process , then everything is fine.