Modifica

Condividi tramite


TransformExtensions.EnumerateHierarchy Method

Definition

Overloads

EnumerateHierarchy(Transform)

Enumerates all children in the hierarchy starting at the root object.

EnumerateHierarchy(Transform, ICollection<Transform>)

Enumerates all children in the hierarchy starting at the root object except for the branches in ignore.

EnumerateHierarchy(Transform)

Enumerates all children in the hierarchy starting at the root object.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<UnityEngine::Transform ^> ^ EnumerateHierarchy(UnityEngine::Transform ^ root);
public static System.Collections.Generic.IEnumerable<UnityEngine.Transform> EnumerateHierarchy (this UnityEngine.Transform root);
static member EnumerateHierarchy : UnityEngine.Transform -> seq<UnityEngine.Transform>
<Extension()>
Public Function EnumerateHierarchy (root As Transform) As IEnumerable(Of Transform)

Parameters

root
UnityEngine.Transform

Start point of the traversion set

Returns

IEnumerable<UnityEngine.Transform>

Applies to

EnumerateHierarchy(Transform, ICollection<Transform>)

Enumerates all children in the hierarchy starting at the root object except for the branches in ignore.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<UnityEngine::Transform ^> ^ EnumerateHierarchy(UnityEngine::Transform ^ root, System::Collections::Generic::ICollection<UnityEngine::Transform ^> ^ ignore);
public static System.Collections.Generic.IEnumerable<UnityEngine.Transform> EnumerateHierarchy (this UnityEngine.Transform root, System.Collections.Generic.ICollection<UnityEngine.Transform> ignore);
static member EnumerateHierarchy : UnityEngine.Transform * System.Collections.Generic.ICollection<UnityEngine.Transform> -> seq<UnityEngine.Transform>
<Extension()>
Public Function EnumerateHierarchy (root As Transform, ignore As ICollection(Of Transform)) As IEnumerable(Of Transform)

Parameters

root
UnityEngine.Transform

Start point of the traversion set

ignore
ICollection<UnityEngine.Transform>

Transforms and all its children to be ignored

Returns

IEnumerable<UnityEngine.Transform>

Applies to