Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HasAttribute<TAttribute>()

Returns true if the property has any attributes of the given type.
Read time 1 minuteLast updated 5 days ago

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
.