文档

Unity Engine

Unity Engine

LoadDeviceByName

Loads the requested device at the beginning of the next frame.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

LoadDeviceByName(string)

Loads the requested device at the beginning of the next frame.
警告
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.
警告
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.