class SpawnPool : List<Transform>
Description
SpawnPools are also a special list class which can provide easy access to only the spawned instances in your game. See the Example Patterns section for more advanced implementation ideas. Class Members
CreatePrefabPool | Creates a new PrefabPool in a SpawnPool to allow prefab-specific options such as instance
pre-loading. | Count | Returns the number of instances currently spawned.
| Despawn | If the passed transform is managed by the SpawnPool, it will be deactivated and made available to be respawned. | GetPrefab | Returns the prefab used to create the passed instance. This is provided for convenience as Unity doesn't offer this feature. | group | The SpawnPool's 'Group' is the GameObject which has the SpawnPool component and is the default parent of all instances in the pool. |
logMessage | Turn this on to see messages printed to the Unity Console | matchPoolLayer | Matches new instances to the SpawnPool GameObject's layer. | matchPoolScale | Matches new instances to the SpawnPool GameObject's scale. | poolName | The name of the pool. Used to access the pool via PoolManager.Pools[poolName] | prefabPools | Access to the prefabPools to get information related to a particular prefab. | prefabs | Access to the prefabs cached in the SpawnPool.
|
Spawn |
Use Spawn() instead of Unity's Instantiate(). |
ToString | Returns a list of the names of instances currently spawned. |
|