EasyARSettings.UnityXROptions.AutoSwitchOptions.PlayerOptions Class¶
Description¶
Play mode options.
Fields¶
Enable¶
- C#
public bool Enable
Enable play mode control. Note: If this option is disabled, components that are disabled during edit mode will not be restored at play mode.
EnableIfDesktop¶
- C#
public bool EnableIfDesktop
Enable if on Windows/Mac.
EnableIfMobileAROnStartup¶
- C#
public bool EnableIfMobileAROnStartup
Enable if mobile AR (ARKit/ARCore) loader is active when the switch starts. This option usually require ‘Initialize XR on Startup’ of XR Plug-in Management is checked.
DisableIfNonMobileARPostStartup¶
- C#
public bool DisableIfNonMobileARPostStartup
Disable if non-mobile AR (ARKit/ARCore) loader is found but no active loader exist. This option is usually used when ‘Initialize XR on Startup’ of XR Plug-in Management is not checked.
RestoreARSessionWhenDisabled¶
- C#
public bool RestoreARSessionWhenDisabled
When function disabled, restore (enable) all disabled ARSessions of AR Foundation (whether they are disabled by EasyAR or not). This options is usually used to restore disabled components in edit mode.