I get an error when deleting an object containing an emitter.
I use an example from here: https://www.defold.com/ref/particlefx/#particlefx.play:url--emitter_state_function-
I add code: go.delete()
if emitter == hash("emitter") and state == particlefx.EMITTER_STATE_POSTSPAWN then
-- emitter is done spawning particles...
go.delete()
end
And I get it in the console:
ERROR:GAMESYS: Could not run particlefx callback because the instance has been deleted.
When will this error be fixed?
Do I need to create a separate topic to discuss the problem?