Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

XRSettings.enabled

public static bool enabled;

Description

Globally enables or disables XR for the application.

Set this to true to enable XR mode for the application. Note that this does not activate XR mode. XR mode is activated when a supported Head Mounted Display (HMD) is connected. The GearVR cannot be disabled once activated. A warning message is shown when attempting to disable a GearVR device.

Did you find this page useful? Please give it a rating: