This version of Unity is unsupported.

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 it if it is found, otherwise return defaultValue.