UltimatePool.batchSpawn Method

Ultimate Pooling

UltimatePoolbatchSpawn Method
Overload List
  Name Description
Public method Static member batchSpawn(String, Int32)
Spawn a number of instance of a prefab with the specified name from the appropriate pool. This method will only succeed if the pool has been created before hand. Batch spawning is quicker than multiple calls to spawn(String) because the pool is cached on the first spawn.
Public method Static member batchSpawn(Component, Int32)
Spawn a number of instances of the specified component prefab from the appropriate pool. If no pool exists, then one is automatically created for the prefab type. Batch spawning is quicker than multiple calls to spawn(Component) because the pool is cached on the first spawn.
Public method Static member batchSpawnT(Component, Int32)
Spawn a number of instances of the specified component prefab from the appropriate pool. If no pool exists, then one is automatically created for the prefab type. Batch spawning is quicker than multiple calls to spawnT(Component) because the pool is cached on the first spawn.
Public method Static member batchSpawn(GameObject, Int32)
Spawn a number of instances of the specified prefab from the appropriate pool. If no pool exists, then one is automatically created for the prefab type. Batch spawning is quicker than multiple calls to spawn(GameObject) because the pool is cached on the first spawn.
Public method Static member batchSpawn(String, Object, Int32)
Spawn a number of instances of a prefab with the specified name from the appropriate pool. This overload allows the user to manage the array where the objects will be spawned to avoid garbage generation. This method will only succeed if the pool has been created before hand. Batch spawning is quicker than multiple calls to spawn(String) because the pool is cached on the first spawn. If amount is specified then the value should be less than or equal to the length of the array otherwise an out of bounds exception may occur.
Public method Static member batchSpawnT(Component, T, Int32)
Spawn a number of instance of the specified prefab and place the results in the specified array. This overload allows the user to manage the array where the objects will be spawned to avoid garbage generation. If no pool exists, then one is automatically created for the prefab type. Batch spawning is quicker that multiple calls to spawnT(Component) because the pool is cached on the first spawn. If amount is specified then the value should be less than or equal to the length of the array otherwise an out of bounds exception may occur.
Public method Static member batchSpawn(Component, Object, Int32)
Spawn a number of instances of the specified prefab and place the results in the specified array. This overload allows the user to manager the array where the objects will be spawned to avoid garbage generation. If no pool exists, then one is automatically created for the prefab type. Batch spawning is quicker than multiple calls to spawn(Component) because the pool is cached on the first spawn. If amount is specified then the value should be less than or equal to the length of the array otherwise an out of bounds exception may occur.
Public method Static member batchSpawn(GameObject, GameObject, Int32)
Spawn a number of instances of the specified prefab and place the results in the specified array. This overload allows the user to manage the array where the objects will be spawned to avoid garbage generation. If no pool exists, then one is automatically created for the prefab type. Batch spawning is quicker than multiple calls to spawn(GameObject) because the pool is cached on the first spawn. If amount is specified then the value should be less than or equal to the length of the array otherwise an out of bounds exception may occur.
Top
See Also