Inventory Engine  v4.0
Static Public Member Functions | List of all members
MoreMountains.Tools.TransformExtensions Class Reference

Transform extensions More...

Static Public Member Functions

static void MMDestroyAllChildren (this Transform transform)
 Destroys a transform's children More...
 
static Transform MMFindDeepChildBreadthFirst (this Transform parent, string transformName)
 Finds children by name, breadth first More...
 
static Transform MMFindDeepChildDepthFirst (this Transform parent, string transformName)
 Finds children by name, depth first More...
 
static void ChangeLayersRecursively (this Transform transform, string layerName)
 Changes the layer of a transform and all its children to the new one More...
 
static void ChangeLayersRecursively (this Transform transform, int layerIndex)
 Changes the layer of a transform and all its children to the new one More...
 
static IEnumerable< Transform > MMEnumerateAllParents (this Transform targetTransform, bool includeSelf=false)
 Enumerates all parents of a transform More...
 

Detailed Description

Transform extensions

Member Function Documentation

◆ ChangeLayersRecursively() [1/2]

static void MoreMountains.Tools.TransformExtensions.ChangeLayersRecursively ( this Transform  transform,
int  layerIndex 
)
static

Changes the layer of a transform and all its children to the new one

Parameters
transform
layerIndex

◆ ChangeLayersRecursively() [2/2]

static void MoreMountains.Tools.TransformExtensions.ChangeLayersRecursively ( this Transform  transform,
string  layerName 
)
static

Changes the layer of a transform and all its children to the new one

Parameters
transform
layerName

◆ MMDestroyAllChildren()

static void MoreMountains.Tools.TransformExtensions.MMDestroyAllChildren ( this Transform  transform)
static

Destroys a transform's children

Parameters
transform

◆ MMEnumerateAllParents()

static IEnumerable<Transform> MoreMountains.Tools.TransformExtensions.MMEnumerateAllParents ( this Transform  targetTransform,
bool  includeSelf = false 
)
static

Enumerates all parents of a transform

Parameters
targetTransform
includeSelf
Returns

◆ MMFindDeepChildBreadthFirst()

static Transform MoreMountains.Tools.TransformExtensions.MMFindDeepChildBreadthFirst ( this Transform  parent,
string  transformName 
)
static

Finds children by name, breadth first

Parameters
parent
transformName
Returns

◆ MMFindDeepChildDepthFirst()

static Transform MoreMountains.Tools.TransformExtensions.MMFindDeepChildDepthFirst ( this Transform  parent,
string  transformName 
)
static

Finds children by name, depth first

Parameters
parent
transformName
Returns

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