文档

Unity Engine

Unity Engine

GetCustomAttribute(string)

Gets a custom attribute by attribute name.
阅读时间1 分钟最后更新于 1 个月前

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.