Bearbeiten

Freigeben über


MigrationTool Class

Definition

This tool allows the migration of obsolete components into up-to-date versions. In order to be processed by the migration tool, deprecated components require specific implementation of the IMigrationHandler

public ref class MigrationTool
public class MigrationTool
type MigrationTool = class
Public Class MigrationTool
Inheritance
MigrationTool

Constructors

MigrationTool()

Properties

MigrationHandlerTypes

Returns a copy of all loadable implementation types of IMigrationHandler

MigrationObjects

Returns a copy of all game objects, prefabs and scene assets selected for migration and their migration status

MigrationState

Current migration process state of the tool

Methods

ClearMigrationList()

Clears list of objects to be migrated

DrawDeprecated<T,THandler>(T)

Util method to draw a deprecated warning for a given component in the inspector as well as a button to migrate / trigger the migration tool to upgrade to the new version via the indicated migration handler.

MigrateSelection(Type, Boolean)

Migrates all objects from list of objects to be migrated using the selected IMigrationHandler implementation.

RemoveObjectForMigration(Object)

Removes object from the list of objects to migrated

TryAddObjectForMigration(Type, Object)

Adds selectedObject to the list of objects to be migrated. Return false if the object is not of type GameObject, or SceneAsset.

TryAddProjectForMigration(Type)

Adds all prefabs and scene assets found on the assets folder to the list of objects to be migrated

Applies to