文档

Unity Engine

Unity Engine

XRStats

Timing and other statistics from the XR subsystem.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Class
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
警告
Deprecated. UnityEngine.VRModule is deprecated and will be removed in a future version. Please use the APIs in the UnityEngine.XRModule instead
public static class XRStats

Remarks

Some XR SDKs provide access to additional timing and other statistics. These can be used by games and applications for profiling and dynamic performance adjustments. For example, modifying XRSettings.eyeTextureResolutionScale or XRSettings.renderViewportScale during runtime can improve performance. This class exposes a set of information that can be optionally reported by SDKs. Make sure to use the return values of any methods to know whether the data is being reported by the SDK or not.