Interface IGameObjectCreatorListener
Optional interface that GameObjects (instantiated and recycled by a GameObjectPool) can implement in order to handle preparation for recycling and reuse.
Namespace: Microsoft.MixedReality.Toolkit.Utilities.GameObjectManagement
Assembly: cs.temp.dll.dll
Syntax
public interface IGameObjectCreatorListener
Methods
PrepareForRecycle()
Called when the GameObject is about to be recycled by the GameObjectPool. This allows you to potentially free up any resources before it is deactivated by the GameObjectPool.
Declaration
void PrepareForRecycle()
PrepareForUse()
Called before the GameObject's position and rotation are set (as well as it's active state) by the GameObjectPool when GetGameObject is called.
Declaration
void PrepareForUse()