NiceTouch v2.1
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...
 

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

◆ 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: