Pool Boss
V 1.2.1
The ultimate pooling solution!
|
Extension methods of Pool Boss methods, that you can call with one less parameter from the Transform component. More...
Static Public Member Functions | |
static bool | AllOfPrefabAreDespawned (this Transform transPrefab) |
Call this method to find out if all are despawned More... | |
static void | CreateNewPoolItem (this Transform itemTrans, int preloadInstances, bool canInstantiateMore, int hardLimit, bool logMsgs, string catName, PoolBoss.PrefabSource prefabSource) |
This method allows you to add a new Pool Item at runtime. More... | |
static bool | Despawn (this Transform transToDespawn) |
Call this method to despawn a prefab using Pool Boss. All the Spawners and Killable use this method. More... | |
static void | DespawnAllOfPrefab (this Transform transToDespawn) |
This method will despawn all spawned instances of the prefab you pass in. More... | |
static string | GetPrefabName (this Transform trans) |
This will return the name of the game object's prefab without "(Clone X)" in the name. It is used internally by PoolBoss for a lot of things. More... | |
static Transform | NextPoolItemToSpawn (this Transform trans) |
Call this get the next available item to spawn for a pool item. More... | |
static int | PrefabDespawnedCount (this Transform transPrefab) |
This will tell you how many available clones of a prefab are despawned and ready to spawn. A value of -1 indicates an error More... | |
static bool | PrefabIsInPool (this Transform trans) |
Call this method determine if the item (Transform) you pass in is set up in Pool Boss. More... | |
static int | PrefabSpawnedCount (this Transform transPrefab) |
This will tell you how many clones of a prefab are already spawned out of Pool Boss. A value of -1 indicates an error More... | |
static Transform | SpawnInPool (this Transform transToSpawn, Vector3 position, Quaternion rotation) |
Call this method to spawn a prefab using Pool Boss, which will be a child of the Pool Boss prefab. More... | |
static Transform | SpawnOutsidePool (this Transform transToSpawn, Vector3 position, Quaternion rotation) |
Call this method to spawn a prefab using Pool Boss, which will be spawned with no parent Transform (outside the pool) More... | |
static Transform | Spawn (this Transform transToSpawn, Vector3 position, Quaternion rotation, Transform parentTransform) |
Call this method to spawn a prefab using Pool Boss. All the Spawners and Killable use this method. More... | |
static Transform | OnLayer (this Transform spawned, int layer) |
Changes the layer of a just spawned Transform More... | |
static Transform | WithScale (this Transform spawned, Vector3 newScale) |
Changes the scale of a spawned Transform More... | |
Extension methods of Pool Boss methods, that you can call with one less parameter from the Transform component.
|
static |
Call this method to find out if all are despawned
transPrefab | The transform of the prefab you are asking about. |
|
static |
This method allows you to add a new Pool Item at runtime.
itemTrans | The Transform of the item. |
preloadInstances | The number of instances to preload. |
canInstantiateMore | Can instantiate more or not |
hardLimit | Item Hard Limit |
logMsgs | Log messages during spawn and despawn. |
catName | Category name |
prefabSource | Prefab source |
|
static |
Call this method to despawn a prefab using Pool Boss. All the Spawners and Killable use this method.
transToDespawn | Transform to despawn |
|
static |
This method will despawn all spawned instances of the prefab you pass in.
transToDespawn | Transform component of a prefab |
|
static |
This will return the name of the game object's prefab without "(Clone X)" in the name. It is used internally by PoolBoss for a lot of things.
trans | The Transform of the game object |
|
static |
Call this get the next available item to spawn for a pool item.
trans | Transform you want to get the next item to spawn for. |
|
static |
Changes the layer of a just spawned Transform
spawned | Spawned Transform |
layer | The layer |
|
static |
This will tell you how many available clones of a prefab are despawned and ready to spawn. A value of -1 indicates an error
transPrefab | The transform component of the prefab you want the despawned count of. |
|
static |
Call this method determine if the item (Transform) you pass in is set up in Pool Boss.
trans | Transform you want to know is in the Pool or not. |
|
static |
This will tell you how many clones of a prefab are already spawned out of Pool Boss. A value of -1 indicates an error
transPrefab | The transform component of the prefab you want the spawned count of. |
|
static |
Call this method to spawn a prefab using Pool Boss. All the Spawners and Killable use this method.
transToSpawn | Transform to spawn |
position | The position to spawn it at |
rotation | The rotation to use |
parentTransform | The parent Transform to use |
|
static |
Call this method to spawn a prefab using Pool Boss, which will be a child of the Pool Boss prefab.
transToSpawn | Transform to spawn |
position | The position to spawn it at |
rotation | The rotation to use |
|
static |
Call this method to spawn a prefab using Pool Boss, which will be spawned with no parent Transform (outside the pool)
transToSpawn | Transform to spawn |
position | The position to spawn it at |
rotation | The rotation to use |
|
static |
Changes the scale of a spawned Transform
spawned | Spawned Transform |
newScale | New scale to use |