文档

Unity Engine

Unity Engine

GetIndicesWithFlags

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

Definition

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

GetIndicesWithFlags(HierarchyNodeFlags, Span<int>)

Gets the indices for all hierarchy nodes that have all of the specified flags set.
public int GetIndicesWithFlags(HierarchyNodeFlags flags, Span<int> outIndices)

Parameters

The hierarchy node flags.

outIndices

The hierarchy node indices.

Returns

Type

Description

intThe number of indices written in the
outIndices
span.

GetIndicesWithFlags(HierarchyNodeFlags)

Gets the indices for all hierarchy nodes that have all of the specified flags set.
public int[] GetIndicesWithFlags(HierarchyNodeFlags flags)

Parameters

The hierarchy node flags.

Returns

Type

Description

int[]The hierarchy node indices.