Class ElasticObjectPoolSettings
Inheritance
ElasticObjectPoolSettings
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
Properties
InitPoolSize
Declaration
public int InitPoolSize { get; set; }
Property Value
MaxInitFrames
Declaration
public int MaxInitFrames { get; set; }
Property Value
MaxPoolSize
Declaration
public int MaxPoolSize { get; set; }
Property Value
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
Implements