Version: 2020.3
public bool TryGetValueFromBag (UIElements.IUxmlAttributes bag, UIElements.CreationContext cc, ref Type value);

参数

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

返回

bool True if the method can retrieve the attribute's value. False otherwise.

描述

Method that tries to retrieve an attribute's value from an attribute bag.. Returns true if it is found, otherwise returns false.