GetNodesWithAnyFlags
Gets all hierarchy nodes that have any of the specified flags set.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
GetNodesWithAnyFlags(HierarchyNodeFlags, Span<HierarchyNode>)
Gets all hierarchy nodes that have any of the specified flags set.
public int GetNodesWithAnyFlags(HierarchyNodeFlags flags, Span<HierarchyNode> outNodes)
Parameters
Returns
Type | Description |
|---|---|
| int | The number of nodes written in the span. |
GetNodesWithAnyFlags(HierarchyNodeFlags)
Gets all hierarchy nodes that have any of the specified flags set.
public HierarchyNode[] GetNodesWithAnyFlags(HierarchyNodeFlags flags)
Parameters
The hierarchy node flags.
Returns
Type | Description |
|---|---|
| HierarchyNode[] | The hierarchy nodes. |