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

Script language

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

PlayerSettings.GetVirtualRealitySupported

Switch to Manual
public static bool GetVirtualRealitySupported(BuildTargetGroup targetGroup);

Parameters

targetGroupThe BuildTargetGroup to return the value for.

Returns

bool True if Virtual Reality Support is enabled.

Description

Returns whether or not Virtual Reality Support is enabled for a given BuildTargetGroup.

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