GameObjectPool.EmptyPool Method

Definition

Overloads

EmptyPool()

Removes and destroys all game objects in the pool.

EmptyPool(String)

Removes and destroys all game objects in the pool associated with the specified objectIdentifier.

EmptyPool()

Removes and destroys all game objects in the pool.

C++
public:
 void EmptyPool();

Applies to

MRTK2 Unity 2018 2.7.0 и други версии
Продукт Версии
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0

EmptyPool(String)

Removes and destroys all game objects in the pool associated with the specified objectIdentifier.

C++
public:
 void EmptyPool(System::String ^ objectIdentifier);

Parameters

objectIdentifier
String

The identifier you want to use to identify the kind of game objects to remove from the pool.

Applies to

MRTK2 Unity 2018 2.7.0 и други версии
Продукт Версии
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0