# UxmlTypeAttributeDescription<TBase>

> Describes an XML System.Type attribute.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Inherits from:** [TypedUxmlAttributeDescription\<Type>](/engine/6000.5/script-reference/unityengine/uielements/typeduxmlattributedescription1.md)

> **Warning:**
>
> **Deprecated.** UxmlTraits system is deprecated and will be removed. Use UxmlElementAttribute instead.

```csharp
public class UxmlTypeAttributeDescription<TBase> : TypedUxmlAttributeDescription<Type>
```

## Constructors

| Constructor                                                                                                                       | Description  |
| --------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| [UxmlTypeAttributeDescription\`1()](/engine/6000.5/script-reference/unityengine/uielements/uxmltypeattributedescription1/ctor.md) | Constructor. |

## Properties

| Property                                                                                                                             | Description                                       |
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------- |
| [defaultValueAsString](/engine/6000.5/script-reference/unityengine/uielements/uxmltypeattributedescription1/defaultvalueasstring.md) | The default value for the attribute, as a string. |

## Methods

| Method                                                                                                                           | Description                                                                                                                      |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [GetValueFromBag](/engine/6000.5/script-reference/unityengine/uielements/uxmltypeattributedescription1/getvaluefrombag.md)       | Method that retrieves an attribute's value from an attribute bag. Returns it if it is found, otherwise return defaultValue.      |
| [TryGetValueFromBag](/engine/6000.5/script-reference/unityengine/uielements/uxmltypeattributedescription1/trygetvaluefrombag.md) | Method that tries to retrieve an attribute's value from an attribute bag.. Returns true if it is found, otherwise returns false. |

## Inheritance

**Inherited Members:**

* [TypedUxmlAttributeDescription\<Type>.defaultValue](/engine/6000.5/script-reference/unityengine/uielements/typeduxmlattributedescription1/defaultvalue.md)
* [UxmlAttributeDescription.TryGetValueFromBag\<T>(IUxmlAttributes, CreationContext, Func\<string, T, T>, T, T)](/engine/6000.5/script-reference/unityengine/uielements/uxmlattributedescription/trygetvaluefrombag.md)
* [UxmlAttributeDescription.GetValueFromBag\<T>(IUxmlAttributes, CreationContext, Func\<string, T, T>, T)](/engine/6000.5/script-reference/unityengine/uielements/uxmlattributedescription/getvaluefrombag.md)
* [UxmlAttributeDescription.name](/engine/6000.5/script-reference/unityengine/uielements/uxmlattributedescription/name.md)
* [UxmlAttributeDescription.obsoleteNames](/engine/6000.5/script-reference/unityengine/uielements/uxmlattributedescription/obsoletenames.md)
* [UxmlAttributeDescription.type](/engine/6000.5/script-reference/unityengine/uielements/uxmlattributedescription/type.md)
* [UxmlAttributeDescription.typeNamespace](/engine/6000.5/script-reference/unityengine/uielements/uxmlattributedescription/typenamespace.md)
* [UxmlAttributeDescription.use](/engine/6000.5/script-reference/unityengine/uielements/uxmlattributedescription/use-1.md)
* [UxmlAttributeDescription.restriction](/engine/6000.5/script-reference/unityengine/uielements/uxmlattributedescription/restriction.md)
