Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Titoro on February 26, 2020, 05:40:25 AM

Title: "set property -> active " works on PC But doesn't work on Android[SOLVED]
Post by: Titoro on February 26, 2020, 05:40:25 AM
I want to make a game with one scene.
So I used set property active for hide some ui and objects.
It works fine on PC.
But It doesn't on my android device.

Value of cale and position works on mobile.
So set property action was worked on mobile except value of active.

** Unity ver : 2019.3.2f1 ,  Play maker ver : 1.9.0.p19
Title: Re: "set property -> active " works on PC But doesn't work on Android
Post by: TerraImagina on February 26, 2020, 06:16:29 AM
Hi Titoro,

I got the same problem, on a build using set properties,

Here is a response from djaydino that helped me to solve the problem

"When using Get/Set Properties you need to use the "linker wizard" and play the whole game to be sure everything is detected.

Also Get/Set Properties uses reflection, which means they are slower than dedicated actions.
but with a small amount it is not noticeable."
Title: Re: "set property -> active " works on PC But doesn't work on Android
Post by: Titoro on February 26, 2020, 06:21:02 AM
I found a similar action "Activate Game Object".
It works both of PC and android.
Then is it a solution?
Title: Re: "set property -> active " works on PC But doesn't work on Android
Post by: Titoro on February 26, 2020, 07:34:29 AM
I installed and used linker wizard.
So set property -> active was worked on android too.

Thank you!
Title: Re: "set property -> active " works on PC But doesn't work on Android[SOLVED]
Post by: TerraImagina on February 26, 2020, 08:11:28 AM
Glad it worked for you,
I think when possible it is best to use a dedicated action : like activate game object, especially if you use it often.
Title: Re: "set property -> active " works on PC But doesn't work on Android[SOLVED]
Post by: djaydino on February 26, 2020, 09:38:39 AM
Hi.
Yes its always better to use dedicated actions.
As Get/Set properties uses reflection which are slower than dedicated actions.

You can find many custom actions on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)