SetFlags
Sets the specified flags on all hierarchy nodes.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
SetFlags(HierarchyNodeFlags)
Sets the specified flags on all hierarchy nodes.
public void SetFlags(HierarchyNodeFlags flags)
Parameters
The flags to set on all hierarchy nodes in the view model.
SetFlags(HierarchyNode, HierarchyNodeFlags)
Sets the specified flags on the hierarchy node.
public void SetFlags(in HierarchyNode node, HierarchyNodeFlags flags)
Parameters
The hierarchy node to set the flags on.
The flags to set on the hierarchy node.
SetFlags(ReadOnlySpan<HierarchyNode>, HierarchyNodeFlags)
Sets the specified flags on the hierarchy nodes.
public int SetFlags(ReadOnlySpan<HierarchyNode> nodes, HierarchyNodeFlags flags)
Parameters
The hierarchy nodes to set the flags on.
The flags to set on the specified hierarchy nodes.
Returns
Type | Description |
|---|---|
| int | The number of nodes that had their flags set. |
Remarks
Null or invalid nodes are ignored.
SetFlags(ReadOnlySpan<int>, HierarchyNodeFlags)
Sets the specified flags on the hierarchy node indices.
public int SetFlags(ReadOnlySpan<int> indices, HierarchyNodeFlags flags)
Parameters
The hierarchy node indices to set the flags on.
The flags to set on the hierarchy nodes at the specified indices.
Returns
Type | Description |
|---|---|
| int | The number of nodes that had their flags set. |
Remarks
Invalid node indices are ignored.