Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

HierarchyViewModel.SetFlags

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 SetFlags(HierarchyNodeFlags flags);

Parameters

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

Description

Sets the specified flags on all hierarchy nodes.


Declaration

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

Parameters

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

Description

Sets the specified flags on the hierarchy node.


Declaration

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

Parameters

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

Returns

int The number of nodes that had their flags set.

Description

Sets the specified flags on the hierarchy nodes.

Null or invalid nodes are ignored.


Declaration

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

Parameters

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

Returns

int The number of nodes that had their flags set.

Description

Sets the specified flags on the hierarchy node indices.

Invalid node indices are ignored.