文档

Unity Engine

Unity Engine

GetNodesWithFlags

Gets all hierarchy nodes that have all of the specified flags set.
阅读时间1 分钟最后更新于 1 个月前

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 hierarchy node flags.

The hierarchy nodes.

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 hierarchy node flags.

Returns

Type

Description

HierarchyNode[]The hierarchy nodes.