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