I’m trying to figure out how do I delete a gameobject from my gui_script. Currently, My gui creates game objects via factory.create() and I save the id factory.create returns in a table. I assume I have to use message passing to tell the object to delete itself (msg.post() right?) but how do I get the url from the id I have saved?
Also, is this enough to have a game object delete itself?
function on_message(self, message_id, message, sender)
go.delete(self)
end
It’s currently the only code on the gameobjects and I don’t have anything else sending my gameobject messages.