Version: 2020.2
public Type GetValueFromBag (UIElements.IUxmlAttributes bag, UIElements.CreationContext cc);

参数

bag 属性包。
cc The context in which the method retrieves attribute values.

返回

Type The attribute's value. If the method cannot find the value, returns defaultValue.

描述

Method that retrieves an attribute's value from an attribute bag. Returns it if it is found, otherwise return defaultValue.