# UxmlUpgradeService

> Service for applying UXML upgrades to VisualTreeAsset.

## Definition

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

```csharp
public class UxmlUpgradeService
```

## Constructors

| Constructor                                                                                               | Description                                                                                                                                                                                                                                                                                         |
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [UxmlUpgradeService()](/engine/6000.6/script-reference/unityeditor/uielements/uxmlupgradeservice/ctor.md) | Creates a new instance of the UxmlUpgradeService and initializes the list of upgraders by finding all types that implement the [IUxmlUpgrader](/engine/6000.6/script-reference/unityeditor/uielements/iuxmlupgrader.md) interface. The upgraders are sorted by name for consistent execution order. |

## Properties

| Property                                                                                            | Description                                |
| --------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| [upgraders](/engine/6000.6/script-reference/unityeditor/uielements/uxmlupgradeservice/upgraders.md) | Gets the list of all registered upgraders. |

## Methods

| Method                                                                                                                | Description                                         |
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [ApplyUpgrades](/engine/6000.6/script-reference/unityeditor/uielements/uxmlupgradeservice/applyupgrades.md)           | Apply all enabled upgrades to the specified assets. |
| [GetUpgraderByName](/engine/6000.6/script-reference/unityeditor/uielements/uxmlupgradeservice/getupgraderbyname.md)   | Get an upgrader by its name.                        |
| [IsUpgraderEnabled](/engine/6000.6/script-reference/unityeditor/uielements/uxmlupgradeservice/isupgraderenabled.md)   | Check if an upgrader is enabled.                    |
| [SetUpgraderEnabled](/engine/6000.6/script-reference/unityeditor/uielements/uxmlupgradeservice/setupgraderenabled.md) | Enable or disable a specific upgrader.              |
