Quantcast
Channel: Answers for "Storing and Removing GameObjects - List or Dictionary?"
Browsing index pages (5 articles)
↧

Answer by phodges

You've got a fixed set of possible element types, so how about? - Start by preallocating all of the elements you will ever need and storing them in an array: access the type you need using an offset...

View Article


Answer by Althaen

This may help you. If not them I'm not much use. :) http://docs.unity3d.com/Documentation/ScriptReference/Object.Destroy.html

View Article


Answer by adriandevera

**EDIT: I thought I was posting a comment, please change this to a comment instead of an answer. Sorry.** Does anyone know how to destroy game objects from a dictionary? Public Dictionary...

View Article

Answer by phodges

You've got a fixed set of possible element types, so how about? - Start by preallocating all of the elements you will ever need and storing them in an array: access the type you need using an offset...

View Article

Answer by Althaen

This may help you. If not them I'm not much use. :) http://docs.unity3d.com/Documentation/ScriptReference/Object.Destroy.html

View Article

Browsing index pages (5 articles)


Latest Images