Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


appliedRenderViewportScale

Fetches how much of the allocated display texture is applied by the active stereo device at the current frame.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public static float appliedRenderViewportScale { get; }

Remarks

The scale factor is fetched by the device and can change from frame to frame. If this value is observed during the gameplay logic it refers to the applied viewport scale of previous frame, if observed during rendering logic it is related to the current frame. _renderViewportScale can influence the scale factor but the XR device can decide to ignore or change it.