文档

Unity Engine

Unity Engine

IndexOf(in HierarchyNode)

Gets the zero-based index of a specified node.
阅读时间1 分钟最后更新于 6 小时前

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.