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.

XRSettings.supportedDevices

public static string[] supportedDevices;

Description

Returns a list of supported XR devices that were included at build time.

Any of these devices can be loaded with XRSettings.LoadDeviceByName. In order to get a device to show up in this list, it must be included at build time in PlayerSettings.