Documentation

Unity Engine

Download Unity

Unity Engine

GetIndicesWithoutFlags

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

Definition

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

GetIndicesWithoutFlags(HierarchyNodeFlags, Span<int>)

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

Parameters

The flags to exclude when matching hierarchy nodes.

outIndices

The output span to write matching hierarchy node indices into.

Returns

Type

Description

intThe number of indices written in the
outIndices
span.

GetIndicesWithoutFlags(HierarchyNodeFlags)

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

Parameters

The flags to exclude when matching hierarchy nodes.

Returns

Type

Description

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