TransformExtensions.EnumerateHierarchy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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