Inventory Engine v4.2
Loading...
Searching...
No Matches
MoreMountains.Tools.TransformExtensions Class Reference

Transform extensions. More...

Static Public Member Functions

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

Detailed Description

Transform extensions.

Member Function Documentation

◆ ChangeLayersRecursively() [1/2]

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]

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

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

Destroys a transform's children.

Parameters
transform

◆ MMEnumerateAllParents()

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

Enumerates all parents of a transform.

Parameters
targetTransform
includeSelf
Returns

◆ MMFindDeepChildBreadthFirst()

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

Finds children by name, breadth first.

Parameters
parent
transformName
Returns

◆ MMFindDeepChildDepthFirst()

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: