文档

Unity Engine

Unity Engine

UxmlTypeAttributeDescription<TBase>

Describes an XML System.Type attribute.
阅读时间1 分钟最后更新于 1 个月前

Definition

public class UxmlTypeAttributeDescription<TBase> : TypedUxmlAttributeDescription<Type>

Constructors

Constructor

Description

UxmlTypeAttributeDescription`1()Constructor.

Properties

Property

Description

defaultValueAsStringThe default value for the attribute, as a string.

Methods

Method

Description

GetValueFromBagMethod that retrieves an attribute's value from an attribute bag. Returns it if it is found, otherwise return defaultValue.
TryGetValueFromBagMethod that tries to retrieve an attribute's value from an attribute bag.. Returns true if it is found, otherwise returns false.

Inheritance