文档

Unity Engine

Unity Engine

UxmlColorAttributeDescription

Describes a UXML attribute representing a Color as a string.
阅读时间1 分钟最后更新于 1 个月前

Definition

public class UxmlColorAttributeDescription : TypedUxmlAttributeDescription<Color>

Constructors

Constructor

Description

UxmlColorAttributeDescription()Constructor.

Properties

Property

Description

defaultValueAsStringThe default value for the attribute, as a string.

Methods

Method

Description

GetValueFromBagRetrieves the value of this attribute from the attribute bag. Returns the value if found; otherwise, it returns defaultValue.
TryGetValueFromBagAttempts to retrieve the value of this attribute from the attribute bag and returns true if found, otherwise false.

Inheritance