Documentation

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
Read time 1 minuteLast updated 5 days ago

Definition

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

Returns

Type

Description

T