Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

HierarchyViewModel.ClearFlags

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 ClearFlags(Unity.Hierarchy.HierarchyNodeFlags flags);

Parameters

flags The hierarchy node flags.

Description

Clears the specified flags on all hierarchy nodes.


Declaration

public void ClearFlags(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

Clears the specified flags on the hierarchy node.


Declaration

public int ClearFlags(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

Clears the specified flags on the hierarchy nodes.

Null or invalid nodes are ignored.


Declaration

public int ClearFlags(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

Clears the specified flags on the hierarchy node indices.

Invalid node indices are ignored.