UxmlUpgradeService
Service for applying UXML upgrades to VisualTreeAsset.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEditor.UIElements
- Assembly: UnityEditor
public class UxmlUpgradeService
Constructors
Constructor | Description |
|---|---|
| UxmlUpgradeService() | Creates a new instance of the UxmlUpgradeService and initializes the list of upgraders by finding all types that implement the IUxmlUpgrader interface. The upgraders are sorted by name for consistent execution order. |
Properties
Property | Description |
|---|---|
| upgraders | Gets the list of all registered upgraders. |
Methods
Method | Description |
|---|---|
| ApplyUpgrades | Apply all enabled upgrades to the specified assets. |
| GetUpgraderByName | Get an upgrader by its name. |
| IsUpgraderEnabled | Check if an upgrader is enabled. |
| SetUpgraderEnabled | Enable or disable a specific upgrader. |