Quantcast
Channel: Answers for "Storing and Removing GameObjects - List or Dictionary?"
Browsing all 5 articles
Browse latest View live

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 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 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 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 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

Browsing all 5 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>