# GetValueFromBag(IUxmlAttributes, CreationContext)

> Use this method to obtain the actual value of the attribute.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public abstract T GetValueFromBag(IUxmlAttributes bag, CreationContext cc)
```

### Parameters

**** (\[IUxmlAttributes]\(/engine/6000.3/script-reference/unityengine/uielements/iuxmlattributes)): The bag of attributes where to get the actual value.**** (\[CreationContext]\(/engine/6000.3/script-reference/unityengine/uielements/creationcontext)): The creation context.

### Returns

| Type | Description          |
| ---- | -------------------- |
| T    | The value of type T. |
