⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    TemporaryPooledObject MonoBehaviour

    Overview

    The TemporaryPooledObject behaviour is used to manage object lifecycle for a reusable object. It is spawned from the PoolManager, and will be returned after the specified time has elapsed.

    Inspector

    TemporaryPooledObject

    Properties

    Name Type Description
    On Overflow Dropdown What should happen if you request an object from the pool when all of its items are in use. Grow means the pool will expand and add new items. Recycle means that the pool will return the oldest active pooled object (make sure to reset it). ReturnNull means the pool will return null as the result (make sure to handle this case as it could cause errors).
    Lifetime Float The duration the object will stay active before returning to the pool.

    See Also

    PoolManager

    Utilities

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX