# CreateUxmlSerializedData(Type)

> Creates a UxmlSerializedData instance for the given type with default values applied.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.UIElements](/engine/6000.6/script-reference/unityeditor/uielements.md)
* **Assembly:** UnityEditor

```csharp
public static UxmlSerializedData CreateUxmlSerializedData(Type type)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The type that contains the UxmlSerializedData. The type must belong to a class that's actively decorated with either the [UxmlElementAttribute](/engine/6000.6/script-reference/unityengine/uielements/uxmlelementattribute.md) or [UxmlObjectAttribute](/engine/6000.6/script-reference/unityengine/uielements/uxmlobjectattribute.md) attribute.

### Returns

| Type                                                                                               | Description |
| -------------------------------------------------------------------------------------------------- | ----------- |
| [UxmlSerializedData](/engine/6000.6/script-reference/unityengine/uielements/uxmlserializeddata.md) |             |
