Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

PlayerSettings.virtualRealitySupported

Switch to Manual
public static bool virtualRealitySupported;

Description

Enable virtual reality support.

When enabled, the virtual reality module is used if possible. This causes a reload of graphics resources. Extra VR specific dependencies are included in platform builds which support VR.

Application.runInBackground is forced to true for all devices except VRDeviceType.None.