ToggleFlagsRecursive
Toggles the specified flags recursively on the hierarchy node.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
ToggleFlagsRecursive(HierarchyNode, HierarchyNodeFlags, HierarchyTraversalDirection)
Toggles the specified flags recursively on the hierarchy node.
public void ToggleFlagsRecursive(in HierarchyNode node, HierarchyNodeFlags flags, HierarchyTraversalDirection direction)
Parameters
The root hierarchy node to toggle flags on recursively.
The flags to toggle on the hierarchy node and its descendants.
The direction of the recursion operation.
ToggleFlagsRecursive(ReadOnlySpan<HierarchyNode>, HierarchyNodeFlags, HierarchyTraversalDirection)
Toggles the specified flags recursively on the hierarchy nodes.
public void ToggleFlagsRecursive(ReadOnlySpan<HierarchyNode> nodes, HierarchyNodeFlags flags, HierarchyTraversalDirection direction)
Parameters
The hierarchy nodes to toggle flags on recursively.
The flags to toggle on the hierarchy nodes and their descendants.
The direction of the recursion operation.