Microsoft.MixedReality.Toolkit.Utilities.GameObjectManagement Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Game |
An abstract class used by the GameObjectPool for creating and recycling game objects. |
Game |
Used to recycle Unity GameObjects. When ever you create GameObjects during runtime some overhead is incurred. Additionally memory can become highly fragment as well as possibly causing the garbage collector to perform a collection (which is also a performance hit). This is especially prevalent when you are spawning and destroying GameObjects of the same type very quickly in large quantities (such as bullets). The GameObject pool allows you to recycle objects so they can be reused upon request. |
Generic |
Creator for making prefab instances |
IGame |
Optional interface that GameObjects (instantiated and recycled by a GameObjectPool) can implement in order to handle preparation for recycling and reuse. |