Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetCustomAttribute(string)

Gets a custom attribute by attribute name.
Read time 1 minuteLast updated 10 days ago

Definition

public BaseAttribute GetCustomAttribute(string name)

Parameters

name

Attribute name.

Returns

Type

Description

BaseAttributeThe custom attribute with the given name when one exists. Otherwise, returns null.