Documentation

Unity Engine

Unity Engine

GetAttribute<TAttribute>()

Returns the first attribute of the given type.
Read time 1 minuteLast updated 4 hours ago

Definition

GetAttribute<T>()

TAttribute GetAttribute<TAttribute>() where TAttribute : Attribute

Returns

Type

Description

TThe attribute of the given type for this property.