JUtils
A unity utilities library
JUtils.TransformExtensions Class Reference

Some useful extensions to transforms More...

Static Public Member Functions

static IEnumerable< Transform > GetChildren (this Transform self)
 Enumerate thru all the children More...
 
static Transform Closest (this Transform self, Transform a, Transform b)
 Get the closest transform from self More...
 
static void Reset (this Transform self)
 Resets the transform to the local identity More...
 

Detailed Description

Some useful extensions to transforms

Member Function Documentation

◆ Closest()

static Transform JUtils.TransformExtensions.Closest ( this Transform  self,
Transform  a,
Transform  b 
)
inlinestatic

Get the closest transform from self

Parameters
aThe first target to check
bThe second target to check
Returns
The closest transform

◆ GetChildren()

static IEnumerable<Transform> JUtils.TransformExtensions.GetChildren ( this Transform  self)
inlinestatic

Enumerate thru all the children

◆ Reset()

static void JUtils.TransformExtensions.Reset ( this Transform  self)
inlinestatic

Resets the transform to the local identity

Parameters
self

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