文档

Unity Engine

Unity Engine

userPresence

Use this property to test whether the user is currently wearing or interacting with the XR device. The exact behavior of this property depends on the device type. While some devices have dedicated proximity sensors, you can generally assume a user is present with the device when this property returns true.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public static InputFeatureUsage<bool> userPresence