| GLMonoBehaviourInstantiate Method (GameObject, 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 public static GameObject Instantiate(
GameObject prefab,
GameObject root,
Vector3 localPosition,
Quaternion localRotation
)
Parameters
- prefab
- Type: GameObject
The prefab. - root
- Type: GameObject
The root. - localPosition
- Type: Vector3
The local position. - localRotation
- Type: Quaternion
The local rotation.
Return Value
Type:
GameObjectGameObject.
See Also