 | EntityObjectPoolSetMaxCapacity Method |
Changes the maximum capacity of this pool. If the maximum capacity is increased, an amount of objects equal to the capacity difference is added to the pool. If the maximum capacity is decreased, an amount of objets equal to the capacity difference is removed from the pool of available objects.
Namespace: Slash.Unity.Common.ECSAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxpublic void SetMaxCapacity(
int newMaxCapacity
)
Public Sub SetMaxCapacity (
newMaxCapacity As Integer
)
public:
void SetMaxCapacity(
int newMaxCapacity
)
member SetMaxCapacity :
newMaxCapacity : int -> unit
Parameters
- newMaxCapacity
- Type: SystemInt32
New maximum capacity of this pool.
See Also