Version: 2021.1

UxmlTypeAttributeDescription<T0>

class in UnityEngine.UIElements

/

继承自:UIElements.TypedUxmlAttributeDescription_1

切换到手册

描述

Describes an XML System.Type attribute.

变量

defaultValueAsString属性的默认值(字符串)。

构造函数

UxmlTypeAttributeDescription_1构造函数。

公共函数

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.

继承的成员

变量

defaultValue用于该特定属性的默认值。
defaultValueAsStringuxml 属性默认值的字符串表示形式。
defaultValueAsString属性的默认值(字符串)。
name属性名称。
obsoleteNames此属性的废弃名称列表。
restriction对属性的可能值的限制。
type属性类型。
typeNamespace属性命名空间。
use属性是可选的、必需的还是禁止的。

受保护的函数

GetValueFromBag从属性包中获取属性值。
TryGetValueFromBag尝试从属性包中获取属性值。
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961