Creates a new, empty transform in the scene with a given parent, name and local coordinates
- Parameters
-
parent | Parent of the spawned transform. Pass null if there ought to be no parent. |
name | Name of the newly created transform |
localCoords | Local coordiantes of the newly spawned transform. |
- Returns
Definition at line 22 of file AVR_Utils.cs.
23 Transform T =
new GameObject(name).transform;
25 T.localPosition=localCoords;