Table of Contents

Method DecreaseCapacity

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

DecreaseCapacity(int, bool)

Decreases the capacity of the pool.

[Version(3, 2, 0)]
public int DecreaseCapacity(int decrement, bool deactivateFirst = false)

Parameters

decrement int

The number of pool objects to destroy.

deactivateFirst bool

Whether to deactivate (active) objects before destroying them.

Returns

int

Remarks

This method may destroy active objects.

Exceptions

ArgumentOutOfRangeException

decrement is negative.