playMaker

Author Topic: Set Property fails in UWP binaries  (Read 62 times)

dtsiknis

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Set Property fails in UWP binaries
« on: August 31, 2017, 05: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).

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12089
  • Official Playmaker Support
    • View Profile
Re: Set Property fails in UWP binaries
« Reply #1 on: September 01, 2017, 02: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

dtsiknis

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: Set Property fails in UWP binaries
« Reply #2 on: September 01, 2017, 09:12:57 AM »
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!