# ApplyUpgrades

> Apply all enabled upgrades to the specified assets.

## Definition

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

## ApplyUpgrades(List\<VisualTreeAsset>)

Apply all enabled upgrades to the specified assets.

```csharp
public void ApplyUpgrades(List<VisualTreeAsset> assets)
```

### Parameters

**** (\[List\<VisualTreeAsset>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The assets to upgrade.

## ApplyUpgrades(List\<VisualTreeAsset>, List\<IUxmlUpgrader>)

Apply specific upgrades to the specified assets.

```csharp
public void ApplyUpgrades(List<VisualTreeAsset> assets, List<IUxmlUpgrader> upgradersToRun)
```

### Parameters

**** (\[List\<VisualTreeAsset>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The assets to upgrade.**** (\[List\<IUxmlUpgrader>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): List of specific upgraders to run.
