Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

UxmlUpgradeService

class in UnityEditor.UIElements

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Service for applying UXML upgrades to VisualTreeAsset.

Properties

Property Description
upgraders Gets the list of all registered upgraders.

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.

Public 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.