LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

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.