holoride
Search Results for

    Show / Hide Table of Contents

    Class ElasticObjectPoolSettings

    Inheritance
    object
    Object
    ScriptableObject
    ElasticObjectPoolSettings
    Implements
    IElasticObjectPoolSettings
    Namespace: Holoride.ElasticSDK
    Assembly: Holoride.ElasticSDK.Runtime.dll
    Syntax
    [CreateAssetMenu(fileName = "Elastic Object Pool Settings", menuName = "holoride/Elastic Object Pool Settings", order = 9)]
    public class ElasticObjectPoolSettings : ScriptableObject, IElasticObjectPoolSettings

    Fields

    PooledPrefab

    The referenced GameObject Prefab whose spawning pool will be configured according to these settings.

    Declaration
    [Tooltip("The referenced GameObject Prefab whose pool will be configured according to these settings.")]
    public GameObject PooledPrefab
    Field Value
    Type Description
    GameObject

    Properties

    InitPoolSize

    Gets or sets the initial amount of instances the spawning pool is going to be instantiated with.

    Declaration
    public int InitPoolSize { get; set; }
    Property Value
    Type Description
    int

    MaxInitFrames

    Gets or sets the maximum amount of frames taken to instantiate initial spawning pool.

    Declaration
    public int MaxInitFrames { get; set; }
    Property Value
    Type Description
    int

    MaxPoolSize

    Gets or sets the maximum amount of instances the spawning pool is going to create. Supports runtime change.

    Declaration
    public int MaxPoolSize { get; set; }
    Property Value
    Type Description
    int

    Methods

    Init(GameObject, int, int, int)

    Declaration
    public void Init(GameObject pooledPrefab, int maxPoolSize = 0, int initPoolSize = 0, int maxInitFrames = 1)
    Parameters
    Type Name Description
    GameObject pooledPrefab
    int maxPoolSize
    int initPoolSize
    int maxInitFrames

    OnValidate()

    Declaration
    public void OnValidate()

    Implements

    IElasticObjectPoolSettings
    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint