文档

Unity Engine

Unity Engine

GetDeviceAtXRNode(XRNode)

Gets the input device at a given XRNode endpoint.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public static InputDevice GetDeviceAtXRNode(XRNode node)

Parameters

node

The XRNode that owns the requested device.

Returns

Type

Description

InputDeviceAn InputDevice at this [[XR.XRNode].

Remarks

If there is no device at the specified endpoint, the method returns an InputDevice on which a call to InputDevice.IsValid returns false.