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

Script language

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

VRSettings.enabled

public static bool enabled;

Description

Globally enables or disables VR for the application.

Set this to true to enable VR mode for the application. Note that this does not activate VR mode. VR 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.