文档

Unity Engine

Unity Engine

HasAttribute<TAttribute>()

Returns true if the property has any attributes of the given type.
阅读时间1 分钟最后更新于 4 小时前

Definition

HasAttribute<T>()

bool HasAttribute<TAttribute>() where TAttribute : Attribute

Returns

Type

Description

bool
true
if the property has the given attribute type; otherwise,
false
.