GameObjectCreator.PrepareForUse(GameObject) 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.
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.