Method DecreaseCapacity
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
DecreaseCapacity(int, bool)
Decreases the capacity of the pool.
int DecreaseCapacity(int decrement, bool deactivateFirst = false)
Parameters
decrement
intThe number of pool objects to destroy.
deactivateFirst
boolWhether to deactivate (active) objects before destroying them.
Returns
Remarks
This method may destroy active objects.
Exceptions
- ArgumentOutOfRangeException
decrement
is negative.