playMaker

Author Topic: Set Property fails in UWP binaries [SOLVED]  (Read 7104 times)

dtsiknis

  • Playmaker Newbie
  • *
  • Posts: 5
Set Property fails in UWP binaries [SOLVED]
« 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).
« Last Edit: January 30, 2018, 07:20:46 AM by Alex Chouls »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15537
  • Official Playmaker Support
Re: Set Property fails in UWP binaries
« Reply #1 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

dtsiknis

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Set Property fails in UWP binaries
« Reply #2 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!