Game Development Community

Objects Still in Scenegraph after a disconnect

by Chris Groot · in Torque 3D Professional · 07/19/2011 (11:35 am) · 2 replies

Hey folks, i'm having a weird issue and I'm wondering if I might be able to get some help/info as to why this may be occurring. I've got some TSStatics which I'm adding/removing from my scene at runtime and occasionally when I disconnect my game and return to my main menu there are still instances of runtime added TSstatics within the scenegraph being updated and still existing, these objects will persist through multiple disconnects until I shutdown the app and restart it. I've been looking at each of the objects and they have valid object ids and the names I give them, though some don't have any defined namespaces within there SimObject, wondering what may be causing these objects to persist?

#1
07/19/2011 (11:57 am)
To elaborate on this to add/remove from scene I am registering the runtime generated objects using there: registerobject function and to remove them from the scene I use: unregisterobject
#2
07/19/2011 (1:11 pm)
Seems this was caused by the way in which we were removing/deleting our runtime TSStatic objects, so no replies needed.