|
static void | SwapValues (Transform t1, Transform t2) |
| Swap transform values between two transforms More...
|
|
static void | Copy (this Transform t1, Transform copyFrom) |
| Set all transform values by copying values from another transform More...
|
|
static void | Set (this Transform t, Vector3 position, Quaternion rotation, Vector3 scale) |
| Set all transform values in one go More...
|
|
static void | Clear (this Transform t) |
| Zero out all local values (position = Vector3.zero, rotation = Quaternion.identity, scale = Vector3.one) More...
|
|
static void | SetChildrenActive (this Transform t, bool active) |
| Sets all children gameObjects active-state More...
|
|
static void | DestroyChildren (this Transform t) |
| Removes all children of the transform More...
|
|
static void | DestroyChildrenImmediate (this Transform t) |
| Removes all children of the transform immediately (used in editor) More...
|
|
static void | SafeDestroyChildren (this Transform t) |
| Removes all children of the transform More...
|
|
static bool | HasActiveChildren (this Transform t) |
| Checks if transform has any children that are active self More...
|
|
static List< Transform > | GetChildList (this Transform t, List< Transform > list) |
| Returns a list of all the transform's children More...
|
|
static List< Transform > | GetChildList (this Transform t) |
| Returns a list of all the transform's children More...
|
|
static string | ObjectPath (this Transform t) |
| Returns the transform's path in the hierarchy More...
|
|
static T | FindClosestComponentInParents< T > (this Transform transform, bool dontIncludeThisObject=false) |
| Recursively returns the first closest component of type <T> upward in the hierarchy More...
|
|
static T[] | FindClosestComponentsInParents< T > (this Transform transform, bool dontIncludeThisObject=false) |
| Recursively returns an array of components of type <T> on the closest component that has them in the hierarchy More...
|
|
static T[] | GetAllComponentsInParents< T > (this Transform transform, bool dontIncludeThisObject=false) |
| Recursively returns an array of components of type <T> on the closest component that has them in the hierarchy More...
|
|
static Transform[] | GetAllParentTransforms (this Transform transform) |
|