Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LoadDeviceByName

Loads the requested device at the beginning of the next frame.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule

LoadDeviceByName(string)

Loads the requested device at the beginning of the next frame.
Warning
Removed. XRSettings.LoadDeviceByName is deprecated and should no longer be used. Instead, query subsystem descriptors via the SubsystemManager to create and start the subsystems you need.
public static void LoadDeviceByName(string deviceName)

Parameters

deviceName

Name of the device from XRSettings.supportedDevices.

Remarks

This API is deprecated and should no longer be used.

LoadDeviceByName(string[])

Loads the requested device at the beginning of the next frame.
Warning
Removed. XRSettings.LoadDeviceByName is deprecated and should no longer be used. Instead, query subsystem descriptors via the SubsystemManager to create and start the subsystems you need..
public static void LoadDeviceByName(string[] prioritizedDeviceNameList)

Parameters

prioritizedDeviceNameList

Prioritized list of device names from XRSettings.supportedDevices.

Remarks

This API is deprecated and should no longer be used.