Click or drag to resize

GLMonoBehaviourInstantiateT Method (T, GameObject)

Instantiates a prefab and attaches it to the given root.

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

Parameters

prefab
Type: T
root
Type: GameObject

Type Parameters

T

Return Value

Type: T
See Also