Documentation

Unity Engine

Unity Engine

GetAttributes

Returns all attribute of the given type.
Read time 1 minuteLast updated 5 hours ago

Definition

GetAttributes<T>()

Returns all attribute of the given type.
public IEnumerable<TAttribute> GetAttributes<TAttribute>() where TAttribute : Attribute

Returns

Type

Description

IEnumerable<T>An IEnumerable_1 for all attributes of the given type.

GetAttributes()

Returns all attribute for this property.
public IEnumerable<Attribute> GetAttributes()

Returns

Type

Description

IEnumerable<Attribute>An IEnumerable_1 for all attributes.