Click or drag to resize

GLMonoBehaviourInstantiateT Method (T, GameObject, Vector3, Quaternion)

Instantiates a prefab, attaches it to the given root, and sets the local position and rotation.

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,
	Vector3 localPosition,
	Quaternion localRotation
)
where T : Component

Parameters

prefab
Type: T
root
Type: GameObject
localPosition
Type: Vector3
localRotation
Type: Quaternion

Type Parameters

T

Return Value

Type: T
See Also