Documentation

Unity Engine


Unity Engine


GetNodesWithoutFlags

Gets all hierarchy nodes that do not have all of the specified flags set.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule

GetNodesWithoutFlags(HierarchyNodeFlags, Span<HierarchyNode>)

Gets all hierarchy nodes that do not have all of the specified flags set.
public int GetNodesWithoutFlags(HierarchyNodeFlags flags, Span<HierarchyNode> outNodes)

Parameters

The flags to exclude when matching hierarchy nodes.

The output span to write matching hierarchy nodes into.

Returns

Type

Description

intThe number of nodes written in the
outNodes
span.

GetNodesWithoutFlags(HierarchyNodeFlags)

Gets all hierarchy nodes that do not have all of the specified flags set.
public HierarchyNode[] GetNodesWithoutFlags(HierarchyNodeFlags flags)

Parameters

The flags to exclude when matching hierarchy nodes.

Returns

Type

Description

HierarchyNode[]An array that contains all hierarchy nodes that do not have all of the specified flags set.