I have an object called Platform (which has, you guessed it, the Platform property). If some conditions are met, I destroy this object in its On created event.
In the On start of layout event, I save the game using the built-in save method. When I do so, the game immediately locks up and I get the following error in the console:
instance.js:8
Uncaught (in promise) TypeError: this._wasOverJumpthru.GetUID is not a function
at PlatformInstance.SaveToJson (instance.js:8)
at BehaviorInstance.SaveToJson (behaviorInstance.js:3)
at Instance.SaveToJson (instance.js:20)
at objectClass.js:27
at Array.map (<anonymous>)
at ObjectClass._SaveToJson (objectClass.js:27)
at C3Runtime._SaveToJsonString (runtime.js:88)
at C3Runtime._DoSaveToSlot (runtime.js:85)
at C3Runtime._HandleSaveOrLoad (runtime.js:82)
at C3Runtime.Tick (runtime.js:61)
Is the game trying to save that instance I just destroyed? How can I prevent it from doing so?