mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

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

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

    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()
    In This Article
    • Methods
      • PrepareForRecycle()
      • PrepareForRecycle()
      • PrepareForUse()
      • PrepareForUse()
    Back to top Generated by DocFX