C# Class UnityContrib.UnityEngine.TransformEx

Provides helper methods for working with the T:UnityEngine.Transform class.
Afficher le fichier Open project: UnityContrib/framework

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat IEnumerable

DecendantsDepthFirst() public static méthode

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. ///
Résultat IEnumerable

DestroyAllChildren() public static méthode

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. ///
Résultat void

DestroyImmediateAllChildren() public static méthode

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. ///
Résultat void