Click or drag to resize

GLMonoBehaviourInstantiate Method (GameObject, GameObject)

Instantiates a prefab and parents it to the root.

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static GameObject Instantiate(
	GameObject prefab,
	GameObject root
)

Parameters

prefab
Type: GameObject
The prefab.
root
Type: GameObject
The root.

Return Value

Type: GameObject
GameObject.
See Also