文档

Unity Engine

Download Unity

Unity Engine

enabled

Globally enables or disables XR for the application.
阅读时间1 分钟最后更新于 2 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public static bool enabled { get; set; }

Remarks

Set this to true to enable XR mode for the application. Note that this does not activate XR mode. XR mode is activated when a supported Head Mounted Display (HMD) is connected. The GearVR cannot be disabled once activated. A warning message is shown when attempting to disable a GearVR device.