文档

Unity Engine

Unity Engine

IndexOf(VisualElement)

Retrieves the index of the specified VisualElement in the Hierarchy.
阅读时间1 分钟最后更新于 1 个月前

Definition

public int IndexOf(VisualElement element)

Parameters

The element to return the index for.

Returns

Type

Description

intThe index of the element, or -1 if the element is not found.