Show / Hide Table of Contents

    Class PoolableMonoBehaviour

    MonoBehaviour that has a reference to its parent pool, and can thus be released to the pool without the user needing a reference to its pool, making it self contained. Usable either as a standalone component or as a base class for other components.

    Inheritance
    Object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    PoolableMonoBehaviour
    AutoPool
    Implements
    IPoolable
    Namespace: QFSW.MOP2
    Assembly: QFSW.MOP2.dll
    Syntax
    public class PoolableMonoBehaviour : MonoBehaviour, IPoolable

    Properties

    | Improve this Doc View Source

    PoolReady

    If its parent pool has been initialized yet.

    Declaration
    public bool PoolReady { get; }
    Property Value
    Type Description
    Boolean

    Methods

    | Improve this Doc View Source

    Release()

    Releases the object and returns it back to its pool, effectively 'destroying' it from the scene.

    Declaration
    public void Release()

    Explicit Interface Implementations

    | Improve this Doc View Source

    IPoolable.InitializeTemplate(ObjectPool)

    Declaration
    void IPoolable.InitializeTemplate(ObjectPool pool)
    Parameters
    Type Name Description
    ObjectPool pool

    Implements

    IPoolable
    • Improve this Doc
    • View Source
    Master Object Pooler 2 by QFSW
    Back to top