Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

HierarchyViewModel.ToggleFlags

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void ToggleFlags(Unity.Hierarchy.HierarchyNodeFlags flags);

Parameters

flags The hierarchy node flags.

Description

Toggles the specified flags on all hierarchy nodes.


Declaration

public void ToggleFlags(ref Unity.Hierarchy.HierarchyNode node, Unity.Hierarchy.HierarchyNodeFlags flags, bool recurse);

Parameters

node The hierarchy node.
flags The hierarchy node flags.
recurse Whether or not to clear the flags on all children recursively for that hierarchy node.

Description

Toggles the specified flags on the hierarchy node.


Declaration

public int ToggleFlags(ReadOnlySpan<HierarchyNode> nodes, Unity.Hierarchy.HierarchyNodeFlags flags);

Parameters

nodes The hierarchy nodes.
flags The hierarchy node flags.

Returns

int The number of nodes that had their flags cleared.

Description

Toggles the specified flags on the hierarchy nodes.

Null or invalid nodes are ignored.


Declaration

public int ToggleFlags(ReadOnlySpan<int> indices, Unity.Hierarchy.HierarchyNodeFlags flags);

Parameters

indices The hierarchy node indices.
flags The hierarchy node flags.

Returns

int The number of nodes that had their flags cleared.

Description

Toggles the specified flags on the hierarchy node indices.

Invalid node indices are ignored.