GameObjectPool.Recycle(GameObject, String) Method

Definition

Adds a game object under a specific object identifier to the GameObjectPool.

public:
 void Recycle(UnityEngine::GameObject ^ gameObject, System::String ^ objectIdentifier);
public void Recycle (UnityEngine.GameObject gameObject, string objectIdentifier);
member this.Recycle : UnityEngine.GameObject * string -> unit
Public Sub Recycle (gameObject As GameObject, objectIdentifier As String)

Parameters

gameObject
UnityEngine.GameObject

The GameObject to recycle.

objectIdentifier
String

The identifier you want to use to identify the kind of game object you are recycling.

Applies to