- Home /
Unload from memory - GameObject in an array?
Would unloading a GameObject from memory while it is listed in an array cause an issue if you want to bring it back into memory and back into the array, back and forth?
And 'unloading' part? Do you refer to unloading as a result of calling Destroy
method?
You will get a performance hit as the object is loading back in from the disc, but otherwise it should cause no problems, as long as you load it back in before you try using it (otherwise you'll just get a null reference exception).
Answer by Hoeloe · Sep 30, 2013 at 12:34 AM
You will get a performance hit as the object is loading back in from the disc, but otherwise it should cause no problems, as long as you load it back in before you try using it (otherwise you'll just get a null reference exception).
Your answer
Follow this Question
Related Questions
How to show 3000+ Trees(generator) without getting Memory overflow (no terrain generator) 0 Answers
Can't add GameObjects to ArrayList 1 Answer
Keep adding targets to a list 2 Answers
Removing objects from an array 2 Answers
random limitation memory game 0 Answers