Documentation

Unity Engine

Unity Engine

IndexOf(in HierarchyNode)

Gets the index of a specified node.
Read time 1 minuteLast updated a month ago

Definition

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

IndexOf(HierarchyNode)

public int IndexOf(in HierarchyNode node)

Parameters

The hierarchy node to find the index of in the view model.

Returns

Type

Description

intAn index of the node if found, -1 otherwise.