- Home /
Question by
ina · May 10, 2011 at 03:46 AM ·
instantiateremoveglobalarraylist
Removing all instantiated objects in scene
If I store instantiated objects in an global ArrayList, do I just declare the global new ArrayList() to remove all instantiated objects?
Comment
Answer by Dreamer · May 10, 2011 at 04:49 AM
You need to use Destroy() to destroy these objects and then instantiate new objects.
for(var obj in arrylist_name){
Destroy(obj);
}