Version: 2021.3
LanguageEnglish
  • C#

PlayerSettings.resetResolutionOnWindowResize

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 resetResolutionOnWindowResize;

Description

Indicates whether to reset the application's screen resolution when the native window size changes.

When enabled, if the native window size changes, Unity sets the application's screen resolution to match the new native window size. If you set the **Resolution Scaling Mode** Player Setting to **Fixed DPI**, Unity recalculates the resolution based on the **Fixed DPI** Player Setting property.

This property is relevant for iOS and Android devices.