Version: Unity 6.7 Alpha (6000.7)
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(HierarchyNodeFlags flags);

Parameters

Parameter Description
flags The flags to toggle on all hierarchy nodes in the view model.

Description

Toggles the specified flags on all hierarchy nodes.


Declaration

public void ToggleFlags(ref HierarchyNode node, HierarchyNodeFlags flags);

Parameters

Parameter Description
node The hierarchy node to toggle the flags on.
flags The flags to toggle on the hierarchy node.

Description

Toggles the specified flags on the hierarchy node.


Declaration

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

Parameters

Parameter Description
nodes The hierarchy nodes to toggle the flags on.
flags The flags to toggle on the specified hierarchy nodes.

Returns

int The number of nodes that had their flags toggled.

Description

Toggles the specified flags on the hierarchy nodes.

Null or invalid nodes are ignored.


Declaration

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

Parameters

Parameter Description
indices The hierarchy node indices to toggle the flags on.
flags The flags to toggle on the hierarchy nodes at the specified indices.

Returns

int The number of nodes that had their flags toggled.

Description

Toggles the specified flags on the hierarchy node indices.

Invalid node indices are ignored.