Свойство | Type | Description | |
---|---|---|---|
AllocationBlockSize | int | ||
AutoCull | bool | ||
AutoDespawn | bool | ||
CullingSpeed | float | ||
MaxPoolSize | int | ||
MinPoolSize | int | ||
OnMaxPoolSize | MBAnchorPoolExceededMode | ||
PoolingEnabled | bool |
Méthode | Description | |
---|---|---|
ClearPool ( ) : void |
Remove all instances held by the pool
|
|
Cull ( ) : void |
Shrink the stock to match MaxPoolSize
|
|
Cull ( bool smartCull ) : void |
Shrink the stock to match MaxPoolSize
|
|
Despawn ( MBEmitter item ) : void |
Despawn an item and add it back to the stock
|
|
DespawnAll ( ) : void |
Despawn all items currently spawned from this pool
|
|
IsManaged ( MBEmitter item ) : bool |
Whether an item is managed by this pool
|
|
IsSpawned ( MBEmitter item ) : bool |
Whether an item is spawned by this pool
|
|
LateUpdate ( ) : void | ||
Populate ( int no ) : void |
Create instances and add them to the stock
|
|
PreparePool ( ) : void |
Clear all instances and repopulate the pool to match MinPoolSize
|
|
Spawn ( ) : MBEmitter |
Spawn an instance, make it active and add it to the Spawned list
|
|
callbackAutoDespawn ( MBEvent, e ) : void |
Méthode | Description | |
---|---|---|
AddEmitter ( ) : MBEmitter | ||
AddEmitter ( MBEmitter source ) : MBEmitter | ||
Start ( ) : IEnumerator |
public Cull ( bool smartCull ) : void | ||
smartCull | bool | if true a maximum of AllocationBlockSize items are culled |
Résultat | void |
public IsManaged ( MBEmitter item ) : bool | ||
item | MBEmitter | an item |
Résultat | bool |
public IsSpawned ( MBEmitter item ) : bool | ||
item | MBEmitter | an item |
Résultat | bool |
public callbackAutoDespawn ( MBEvent, e ) : void | ||
e | MBEvent, | |
Résultat | void |
public MBAnchorPoolExceededMode OnMaxPoolSize | ||
Résultat | MBAnchorPoolExceededMode |