⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    PoolManager ScriptableObject

    Overview

    The PoolManager scriptable object specifies the PooledObject prefabs available across all scenes, and handles creation or registration of the ScenePoolHandler after scene loads.

    Inspector

    PoolManager

    Properties

    Name Type Description
    Scene Pool Handler Prefab ScenePoolHandler A scene pool handler prefab to be instantiated in the scene if none already exists.
    Default Runtime Pool Size Int The size of any new pools that are added to the array after initialisation.
    Add Prefab PooledObject Adds a prefab to the pools list below, using the new pool size setting.
    Add Folder Folder Adds all the prefabs within the folder and all its sub-folders to the pools list below, using the new pool size setting.
    New Pool Size Integer The pool size to use for any new tools added to the pools list below.
    Collections PooledObjectCollection Array The collections of pooled objects to set up at initialisation.
    Pools Pool Info Array The pools to set up at initialisation.

    Pool Info

    Name Type Description
    Prototype PooledObject The prefab object to spawn.
    Count Int The number of objects to instantiate for the pool.

    See Also

    PooledObject

    ScenePoolHandler

    Utilities

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