# UxmlSerializedData

> Generates an instance of the declaring element when the UxmlElementAttribute is used in a custom control.

## Definition

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

```csharp
public abstract class UxmlSerializedData
```

## Methods

| Method                                                                                                        | Description                                                     |
| ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [CreateInstance](/engine/6000.0/script-reference/unityengine/uielements/uxmlserializeddata/createinstance.md) | Returns an instance of the declaring element.                   |
| [Deserialize](/engine/6000.0/script-reference/unityengine/uielements/uxmlserializeddata/deserialize.md)       | Applies serialized field values to a compatible visual element. |

## Static Methods

| Method                                                                                                                              | Description                                                                                                                                                                                                   |
| ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Register](/engine/6000.0/script-reference/unityengine/uielements/uxmlserializeddata/register.md)                                   | This is used by the code generator when a custom control is using the [UxmlElementAttribute](/engine/6000.0/script-reference/unityengine/uielements/uxmlelementattribute.md). You should not need to call it. |
| [ShouldWriteAttributeValue](/engine/6000.0/script-reference/unityengine/uielements/uxmlserializeddata/shouldwriteattributevalue.md) | Determines if an attribute should be applied during [UxmlSerializedData.Deserialize](/engine/6000.0/script-reference/unityengine/uielements/uxmlserializeddata/deserialize.md).                               |

## Enums

| Enum                                                                                                                                     | Description                                               |
| ---------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [UxmlSerializedData.UxmlAttributeFlags](/engine/6000.0/script-reference/unityengine/uielements/uxmlserializeddata/uxmlattributeflags.md) | Used to indicate if a field is overridden in a UXML file. |
