Class TransformExtensions
- Namespace
- S1MAPI.Extensions
- Assembly
- S1MAPI_Mono.dll
Extension methods for Transform operations.
public static class TransformExtensions
- Inheritance
-
TransformExtensions
- Inherited Members
Methods
DestroyChildren(Transform)
Destroy all child GameObjects of this transform.
public static void DestroyChildren(this Transform transform)
Parameters
transformTransform
GetChildren(Transform)
Get all children as a GameObject array.
public static GameObject[] GetChildren(this Transform transform)
Parameters
transformTransform
Returns
- GameObject[]
Reset(Transform)
Reset transform to identity (position=zero, rotation=identity, scale=one).
public static Transform Reset(this Transform transform)
Parameters
transformTransform
Returns
- Transform
SetLocalPosition(Transform, float?, float?, float?)
Set local position with optional axis parameters.
public static Transform SetLocalPosition(this Transform transform, float? x = null, float? y = null, float? z = null)
Parameters
Returns
- Transform