playMaker

Author Topic: [BUG] PM:1.8.3 Unity:5.4.1f1 - WebGL cant set properties[SOLVED]  (Read 2938 times)

deathknight72

  • Playmaker Newbie
  • *
  • Posts: 3
I have narrowed down an issue with exporting webGL out of Unity 5.4.1f1 using Playmaker 1.8.3.
I am trying to activate an object in the scene by dragging the object into another object's FSM and using game object>Set property>Active and enabling "active".
It works in editor and on a windows build but it doesnt seem to work when I build out as WebGL.
If you could look into this it would be most appreciated because I know I myself and many others use this function to activate objects in the scene.
« Last Edit: October 10, 2016, 05:22:24 AM by jeanfabre »

deathknight72

  • Playmaker Newbie
  • *
  • Posts: 3
Re: [BUG] PM:1.8.3 Unity:5.4.1f1 - WebGL cant set properties
« Reply #1 on: October 05, 2016, 08:39:24 AM »
May have found a fix
If you drag the object into the state window and go to gameobject>gameobject>activate game object
that seems to have worked so far rather than using the gameobject>set propery>active

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: [BUG] PM:1.8.3 Unity:5.4.1f1 - WebGL cant set properties
« Reply #2 on: October 05, 2016, 10:45:06 AM »
This is probably because of stripping when making the build:
https://docs.unity3d.com/Manual/webgl-building.html

You need to make a link.xml file to tell Unity which classes/methods/properties to keep when making the build.

Or use the Linker Wizard to create the link.xml file:
http://hutonggames.com/playmakerforum/index.php?topic=11126.0