|
static Transform AVR.Core.Utils.Misc.CreateEmptyGameObject |
( |
string |
name, |
|
|
Transform |
parent, |
|
|
Vector3 |
worldPos, |
|
|
Quaternion |
worldRot |
|
) |
| |
|
inlinestatic |
Creates an empty gameobject with specifed position and rotation. Returns its transform component.
- Parameters
-
name | Name of the gameobject |
parent | Parent of the gameobject (null for no parent) |
worldPos | World-space position to instantiate the object at |
worldRot | World-space rotation of the gameobject |
Definition at line 239 of file AVR_Utils.cs.
240 GameObject o = new GameObject(name);
241 o.transform.SetParent(parent);
242 o.transform.SetPositionAndRotation(worldPos, worldRot);
|