文档

Unity Engine

Unity Engine

GetAttribute<TAttribute>()

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

Definition

  • Type: Method
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule

GetAttribute<T>()

TAttribute GetAttribute<TAttribute>() where TAttribute : Attribute

Returns

Type

Description

TThe attribute of the given type for this property.