Table of Contents

Method Clear

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Clear<T>(IPool<T>, bool)

Destroys all objects in the pool, reducing the capacity to zero.

public static void Clear<T>(this IPool<T> pool, bool deactivateFirst = false)

Parameters

pool IPool<T>

The pool to clear.

deactivateFirst bool

Whether deactivate the object before destroying them.

Type Parameters

T