ドキュメント

Unity Engine

Unity Engine

HasAttribute<TAttribute>()

Returns true if the property has any attributes of the given type.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

HasAttribute<T>()

bool HasAttribute<TAttribute>() where TAttribute : Attribute

Returns

Type

Description

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