文档

Unity Engine

Unity Engine

UxmlUpgradeService

Service for applying UXML upgrades to VisualTreeAsset.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

upgradersGets the list of all registered upgraders.

Methods

Method

Description

ApplyUpgradesApply all enabled upgrades to the specified assets.
GetUpgraderByNameGet an upgrader by its name.
IsUpgraderEnabledCheck if an upgrader is enabled.
SetUpgraderEnabledEnable or disable a specific upgrader.