Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


disableSwapChainPreTransform

When true, forces an identity swapchain even when pre-transform is enabled in Player Settings.
Read time 1 minuteLast updated 14 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool disableSwapChainPreTransform { get; set; }

Remarks

Swapchain pre-transform (Apply display rotation during rendering in Player Settings, Vulkan on Android) rotates rendering to the display's native orientation during rendering. Set this property to disable pre-transform at runtime when it is incompatible with the active rendering path; the swapchain is recreated on the next display update.
This property is a no-op where SystemInfo.supportsSwapChainPreTransform is false.