C# Class UnityContrib.UnityEngine.TransformEx

Provides helper methods for working with the T:UnityEngine.Transform class.
显示文件 Open project: UnityContrib/framework

Public Methods

Method Description
DecendantsBreadthFirst ( this transform ) : IEnumerable

Returns all the decendant T:UnityEngine.Transform to the specified transform using breadth first traversal.

DecendantsDepthFirst ( this transform ) : IEnumerable

Returns all the decendant T:UnityEngine.Transform to the specified transform using depth first traversal.

DestroyAllChildren ( this parent ) : void

Destroys all the children of the specified parent T:UnityEngine.Transform.

DestroyImmediateAllChildren ( this parent ) : void

Destroys all the children of the specified parent T:UnityEngine.Transform.

Method Details

DecendantsBreadthFirst() public static method

Returns all the decendant T:UnityEngine.Transform to the specified transform using breadth first traversal.
public static DecendantsBreadthFirst ( this transform ) : IEnumerable
transform this /// The parent to start at. ///
return IEnumerable

DecendantsDepthFirst() public static method

Returns all the decendant T:UnityEngine.Transform to the specified transform using depth first traversal.
public static DecendantsDepthFirst ( this transform ) : IEnumerable
transform this /// The parent to start at. ///
return IEnumerable

DestroyAllChildren() public static method

Destroys all the children of the specified parent T:UnityEngine.Transform.
public static DestroyAllChildren ( this parent ) : void
parent this /// The parent who's children to destroy. ///
return void

DestroyImmediateAllChildren() public static method

Destroys all the children of the specified parent T:UnityEngine.Transform.
public static DestroyImmediateAllChildren ( this parent ) : void
parent this /// The parent who's children to destroy. ///
return void