Documentation

Unity Engine

Unity Engine

HasAttribute<TAttribute>()

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

Definition

HasAttribute<T>()

public bool HasAttribute<TAttribute>() where TAttribute : Attribute

Returns

Type

Description

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