playMaker

Author Topic: Actions working well in editor but not in build  (Read 2249 times)

PolyMad

  • Hero Member
  • *****
  • Posts: 553
Actions working well in editor but not in build
« on: April 02, 2025, 08:47:51 AM »
So I have a system where the player gets a key, it gets put in an array, then when the player reaches the door, there is a check to see if the key is in the array, if positive, the door gets unlocked.
This works perfectly in editor, but when deployed for WebGL, the door doesn't get unlocked.

Edit: switched to Windows platform to test if it was a problem with the encoding for WebGL, but the problem persists.

Edit2: I managed to isolate the problem. Apparently, the action ARRAY CONTAINS GAME OBJECT works in Unity Editor but doesn't work in builds.

Edit3: I solved it by pairing my system with another array where I record the name of the object, and base my compare using that instead than the object itself. However this is a bit a trick and it would be nice if the action would be working.
« Last Edit: April 02, 2025, 03:27:20 PM by PolyMad »