Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

QualitySettings.disableSwapChainPreTransform

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public static bool disableSwapChainPreTransform;

Description

When true, forces an identity swapchain even when pre-transform is enabled in Player Settings.

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.

Additional resources: SystemInfo.supportsSwapChainPreTransform, PlayerSettings.vulkanEnablePreTransform.