文档

Unity Engine

Unity Engine

IndexOf(VisualElement)

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

Definition

public int IndexOf(VisualElement element)

Parameters

The child element to retrieve.

Returns

Type

Description

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