Property | Type | Description | |
---|---|---|---|
automaticallyRecycleParticleSystems | bool | ||
cullExcessPrefabs | bool | ||
cullInterval | float | ||
hardLimit | int | ||
imposeHardLimit | bool | ||
instancesToAllocateIfEmpty | int | ||
instancesToMaintainInPool | int | ||
instancesToPreallocate | int | ||
persistBetweenScenes | bool | ||
prefab | GameObject |
Method | Description | |
---|---|---|
allocateGameObjects ( int count ) : void |
allocates
|
|
clearBin ( bool shouldDestroyAllManagedObjects ) : void |
clears out the bin optionally calling Destroy on all objects in it. note than any spawned objects are not touched by this operation!
|
|
cullExcessObjects ( ) : void |
culls any excess objects if necessary
|
|
despawn ( GameObject go ) : void |
returns an instance to the recycle bin
|
|
initialize ( ) : void |
preps the Stack and does preallocation
|
|
spawn ( ) : GameObject |
fetches a new instance from the recycle bin. Returns null if we reached the hardLimit.
|
Method | Description | |
---|---|---|
pop ( ) : GameObject |
pops an object off the stack. Returns null if we hit the hardLimit.
|
public allocateGameObjects ( int count ) : void | ||
count | int | Count. |
return | void |
public clearBin ( bool shouldDestroyAllManagedObjects ) : void | ||
shouldDestroyAllManagedObjects | bool | |
return | void |
public bool automaticallyRecycleParticleSystems | ||
return | bool |