Editar

Partilhar via


MixedRealityToolkit.SetProfileBeforeInitialization Method

Definition

Set the active profile prior to the initialization (i.e. Awake()) of MixedRealityToolkit

public:
 static void SetProfileBeforeInitialization(Microsoft::MixedReality::Toolkit::MixedRealityToolkitConfigurationProfile ^ profile);
public static void SetProfileBeforeInitialization (Microsoft.MixedReality.Toolkit.MixedRealityToolkitConfigurationProfile profile);
static member SetProfileBeforeInitialization : Microsoft.MixedReality.Toolkit.MixedRealityToolkitConfigurationProfile -> unit
Public Shared Sub SetProfileBeforeInitialization (profile As MixedRealityToolkitConfigurationProfile)

Parameters

Remarks

If changing the Active profile after MixedRealityToolkit has been initialized, modify ActiveProfile of the active instance directly.

This function requires the caller script to be executed earlier than the MixedRealityToolkit script, which can be achieved by setting Script Execution Order settings.

You are strongly recommended to see here for more information on profile switching.

Applies to