Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetNodesWithFlags

Gets all hierarchy nodes that have all of the specified flags set.
Read time 1 minuteLast updated 18 days ago

Definition

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

GetNodesWithFlags(HierarchyNodeFlags, Span<HierarchyNode>)

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

Parameters

The flags to match against hierarchy nodes.

The output span to write matching hierarchy nodes into.

Returns

Type

Description

intThe number of nodes written in the
outNodes
span.

GetNodesWithFlags(HierarchyNodeFlags)

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

Parameters

The flags to match against hierarchy nodes.

Returns

Type

Description

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