Edit

Share via


MigrationTool.DrawDeprecated<T,THandler>(T) Method

Definition

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.

public:
generic <typename T, typename THandler>
 where T : UnityEngine::MonoBehaviour where THandler : Microsoft::MixedReality::Toolkit::Utilities::IMigrationHandler static void DrawDeprecated(T target);
public static void DrawDeprecated<T,THandler> (T target) where T : UnityEngine.MonoBehaviour where THandler : Microsoft.MixedReality.Toolkit.Utilities.IMigrationHandler;
static member DrawDeprecated : 'T -> unit (requires 'T :> UnityEngine.MonoBehaviour and 'Handler :> Microsoft.MixedReality.Toolkit.Utilities.IMigrationHandler)
Public Shared Sub DrawDeprecated(Of T As MonoBehaviour, THandler As MonoBehaviour) (target As T)

Type Parameters

T

Deprecated component type.

THandler

Migration handler to call for migrating the component.

Parameters

target
T

Component to migrate.

Applies to