文档

Unity Engine


User Manual

Script Reference

Unity Engine


GetFirstOfType<T>()

Walks up the hierarchy, starting from this element, and returns the first VisualElement of this type
阅读时间1 分钟最后更新于 1 个月前

Definition

public T GetFirstOfType<T>() where T : class

Returns

Type

Description

T