Hexagon
Loading...
Searching...
No Matches
HexTransform Class Reference

Static Public Member Functions

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).
 

Member Function Documentation

◆ GetChildren()

static List< Transform > 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 > HexTransform.GetChildrenRecursive ( this Transform transform)
inlinestatic

Recursively iterates over all transforms nested to this transform.

◆ LookAtXY()

static void 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
transformTransform to rotate.
positionTarget position on the XY plane.

◆ Reset()

static void 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
transform

The documentation for this class was generated from the following files: