GameObjectPool.Recycle(GameObject, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.