기술 자료

Unity Engine

Unity Engine

HasAttribute<TAttribute>()

Returns true if the property has any attributes of the given type.
읽는 시간 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
.