GenericPrefabInstanceCreator.Instantiate Method

Definition

Creates a GameObject for the GameObjectPool. The position and rotation of the GameObject is set by the GameObjectPool when GetGameObject is called.

public:
 override UnityEngine::GameObject ^ Instantiate();
public override UnityEngine.GameObject Instantiate ();
override this.Instantiate : unit -> UnityEngine.GameObject
Public Overrides Function Instantiate () As GameObject

Returns

UnityEngine.GameObject

An instantiated GameObject.

Applies to