GameObjectCreator.PrepareForUse(GameObject) Method

Definition

Called before the GameObject's position and rotation are set (as well as its active state) by the GameObjectPool when GetGameObject is called. If the GameObject has a component that implements the IGameObjectCreatorHandler interface, it will call its PrepareForUse function.

public:
 virtual void PrepareForUse(UnityEngine::GameObject ^ obj);
public virtual void PrepareForUse (UnityEngine.GameObject obj);
abstract member PrepareForUse : UnityEngine.GameObject -> unit
override this.PrepareForUse : UnityEngine.GameObject -> unit
Public Overridable Sub PrepareForUse (obj As GameObject)

Parameters

obj
UnityEngine.GameObject

The GameObject that is about to be used.

Applies to