![]() | TransformExtensions Class |
Namespace: ImmerseSDK.Extensions
public static class TransformExtensions
The TransformExtensions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AddOrGetComponentT |
Tries to get a component of type T, if none is found, one will be added
|
![]() ![]() | Compare |
Returns True if they are the same, otherwise false
|
![]() ![]() | DeParentChildren(Transform) |
Calls SetParent on all children with null
|
![]() ![]() | DeParentChildren(Transform, ActionTransform) |
Calls SetParent on all children with null
|
![]() ![]() | DeParentChildren(Transform, Boolean, ActionTransform) |
Calls SetParent on all children with null
|
![]() ![]() | ForEachChild |
Safe foreach loop where you are allowed to set the parent. Normal foreach on a transform does not work.
|
![]() ![]() | GetComponentInChildT |
Get a component on the named child
|
![]() ![]() | GetComponentInChildrenT |
Get a component on the named child, and recurse hierarchy
|
![]() ![]() | GetComponentInParentRecursiveT(Transform) |
Searches for a Component of type T upwards in the transform's hierarchy
|
![]() ![]() | GetComponentInParentRecursiveT(Transform, FuncT, Boolean) |
Searches for a Component of type T upwards in the transform's hierarchy
|
![]() ![]() | GetPath |
Gets the string path to the transform using the parent hierarchy
|
![]() ![]() | GetTopMostComponentT(Transform) |
Traverses the gameObject hierarchy upwards (via parents) to find the topmost instance of the script
|
![]() ![]() | GetTopMostComponentT(Transform, FuncT, Boolean) |
Traverses the gameObject hierarchy upwards (via parents) to find the topmost instance of the script
|
![]() ![]() | InverseTransformRotation |
Transform rotation from world to local space
|
![]() ![]() | Reset(Transform) |
Reset position, rotation and scale
|
![]() ![]() | Reset(Transform, Boolean) |
Reset position, rotation and (optionally) scale
|
![]() ![]() | SetParent(Transform, Transform, Vector3, Quaternion) |
Sets the parent of the transform
|
![]() ![]() | SetParent(Transform, Transform, Vector3, Quaternion, Vector3) |
Sets the parent of the transform
|
![]() ![]() | SetParentAndReset |
Sets the parent and resets the transform
|
![]() ![]() | TransformRotation |
Transform rotation from local to world space
|