UxmlEnumAttributeDescription<T0>.GetValueFromBag

Declaration

public T GetValueFromBag(UIElements.IUxmlAttributes bag, UIElements.CreationContext cc);

Parameters

bag The bag of attributes.
cc The context in which the values are retrieved.

Returns

T The value of the attribute.

Description

Retrieves the value of this attribute from the attribute bag. Returns the value if found; otherwise, it returns defaultValue.


Did you find this page useful? Please give it a rating: