Creates an empty gameobject with a localposition and rotation of zero. Returns its transform component.
- Parameters
-
name | Name of the gameobject |
parent | Parent of the gameobject (null for no parent) |
Definition at line 251 of file AVR_Utils.cs.
253 GameObject o =
new GameObject(name);
254 o.transform.SetParent(parent);
255 o.transform.localPosition = Vector3.zero;
256 o.transform.localRotation = Quaternion.identity;