Documentation

Unity Engine

Download Unity

Unity Engine

IndexOf(in HierarchyNode)

Gets the zero-based index of a specified node.
Read time 1 minuteLast updated 12 hours ago

Definition

IndexOf(HierarchyNode)

public int IndexOf(in HierarchyNode node)

Parameters

The hierarchy node.

Returns

Type

Description

intA zero-based index of the node if found, -1 otherwise.