VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
static Transform AVR.Core.Utils.Geom.addEmptyTransform ( Transform  parent,
string  name = "EmptyTransform",
Vector3  localCoords = default(Vector3) 
)
inlinestatic

Creates a new, empty transform in the scene with a given parent, name and local coordinates

Parameters
parentParent of the spawned transform. Pass null if there ought to be no parent.
nameName of the newly created transform
localCoordsLocal coordiantes of the newly spawned transform.
Returns

Definition at line 22 of file AVR_Utils.cs.

22  {
23  Transform T = new GameObject(name).transform;
24  T.SetParent(parent);
25  T.localPosition=localCoords;
26  return T;
27  }