文档

Unity Engine

Unity Engine

GetAttribute<TAttribute>()

Returns the first attribute of the given type.
阅读时间1 分钟最后更新于 2 天前

Definition

GetAttribute<T>()

public TAttribute GetAttribute<TAttribute>() where TAttribute : Attribute

Returns

Type

Description

TThe attribute of the given type for this property.