|
| static List< Transform > | GetChildren (this Transform transform) |
| | Iterates over all transforms attached to this transform as direct children. For recursive search see GetChildrenRecursive.
|
| |
| static List< Transform > | GetChildrenRecursive (this Transform transform) |
| | Recursively iterates over all transforms nested to this transform.
|
| |
| static void | LookAtXY (this Transform transform, Vector2 position) |
| | Rotates the transform to face the given position on the XY plane (Z os the given position is ignored and replaced with transform.position.z.
|
| |
| static void | Reset (this Transform transform) |
| | Resets position, rotation and scale of the transform to default values (all-zeros for position and rotation and all-ones for scale).
|
| |
◆ GetChildren()
| static List< Transform > Hexagon.HexTransform.GetChildren |
( |
this Transform | transform | ) |
|
|
inlinestatic |
Iterates over all transforms attached to this transform as direct children. For recursive search see GetChildrenRecursive.
◆ GetChildrenRecursive()
| static List< Transform > Hexagon.HexTransform.GetChildrenRecursive |
( |
this Transform | transform | ) |
|
|
inlinestatic |
Recursively iterates over all transforms nested to this transform.
◆ LookAtXY()
| static void Hexagon.HexTransform.LookAtXY |
( |
this Transform | transform, |
|
|
Vector2 | position ) |
|
inlinestatic |
Rotates the transform to face the given position on the XY plane (Z os the given position is ignored and replaced with transform.position.z.
- Parameters
-
| transform | Transform to rotate. |
| position | Target position on the XY plane. |
◆ Reset()
| static void Hexagon.HexTransform.Reset |
( |
this Transform | transform | ) |
|
|
inlinestatic |
Resets position, rotation and scale of the transform to default values (all-zeros for position and rotation and all-ones for scale).
- Parameters
-
The documentation for this class was generated from the following files: