Playmaker Forum

PlayMaker Help & Tips => Windows Store Apps Help => Topic started by: dtsiknis on August 31, 2017, 08:27:20 PM

Title: Set Property fails in UWP binaries [SOLVED]
Post by: dtsiknis on August 31, 2017, 08:27:20 PM
We are having issues with the Set Property action with the "active" property. It seems for UWP this works in the editor but does not fire in an executable.

We are on the latest Playmaker (1.8.5.f8).
Title: Re: Set Property fails in UWP binaries
Post by: jeanfabre on September 01, 2017, 05:22:12 AM
Hi,

make sure you use SetProperty on properties you can't access via custom actions, which component are you trying to reach?

 in all cases, you'll need to use the linker wizard, which will go through all your usages and properly tell Unity what to keep during publishing, as SetProperty uses Reflections which makes Unity un aware of what you really need when compiling.

 http://hutonggames.com/playmakerforum/index.php?topic=11126.0

Bye,

 Jean
Title: Re: Set Property fails in UWP binaries
Post by: dtsiknis on September 01, 2017, 12:12:57 PM
We've been using it mostly to set the active property on the gameObject which we are now replacing with the custom Activate GameObject action. Good to know there is a more generic solution as well.

Thanks!