GetIndicesWithFlags
Gets the indices for all hierarchy nodes that have all of the specified flags set.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
GetIndicesWithFlags(HierarchyNodeFlags, Span<int>)
Gets the indices for all hierarchy nodes that have all of the specified flags set.
public int GetIndicesWithFlags(HierarchyNodeFlags flags, Span<int> outIndices)
Parameters
The flags to match against hierarchy nodes.
The output span to write matching hierarchy node indices into.
Returns
Type | Description |
|---|---|
| int | The number of indices written in the |
GetIndicesWithFlags(HierarchyNodeFlags)
Gets the indices for all hierarchy nodes that have all of the specified flags set.
public int[] GetIndicesWithFlags(HierarchyNodeFlags flags)
Parameters
The flags to match against hierarchy nodes.
Returns
Type | Description |
|---|---|
| int[] | An array that contains the indices of all hierarchy nodes that have all of the specified flags set. |