# AcceptsAttributeBag(IUxmlAttributes, CreationContext)

> Returns true.

## Definition

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

> **Warning:**
>
> **Deprecated.** BaseUxmlFactory\<TCreatedType, TTraits> is deprecated and will be removed. Use UxmlElementAttribute instead.

```csharp
public virtual bool AcceptsAttributeBag(IUxmlAttributes bag, CreationContext cc)
```

### Parameters

**** (\[IUxmlAttributes]\(/engine/6000.5/script-reference/unityengine/uielements/iuxmlattributes)): The attribute bag.**** (\[CreationContext]\(/engine/6000.5/script-reference/unityengine/uielements/creationcontext)):&#x20;

### Returns

| Type                                                          | Description  |
| ------------------------------------------------------------- | ------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Always true. |

### Remarks

By default, accepts any attribute bags. Override this function if you want to make specific checks on the attribute bag.
