Class TransformExtensions
Inheritance
TransformExtensions
Assembly: GGL.dll
public static class TransformExtensions
Methods
|
Edit this page
View Source
Return the enabled children of the transform.
Declaration
public static IEnumerable<Transform> GetChildren(this Transform transform)
Parameters
Type |
Name |
Description |
Transform |
transform |
|
Returns
|
Edit this page
View Source
Return the enabled sibling of the transform from its parent.
Declaration
public static IEnumerable<Transform> GetSiblings(this Transform transform, bool excludeSelf = true)
Parameters
Type |
Name |
Description |
Transform |
transform |
|
bool |
excludeSelf |
|
Returns
|
Edit this page
View Source
Reset a transform's position and rotation.
Declaration
public static void Reset(this Transform transform)
Parameters
Type |
Name |
Description |
Transform |
transform |
|