Description

HUD drawing does not update correctly when the user changes the viewport resolution, resulting in unexpected offset.

Safe zones appear to get stuck being enabled even after changing resolution preset to something without a safe zone.

Steps to Reproduce
  1. Download and extract the attached project
  2. Open the project in editor.
  3. Play in New Window.
    • Notice that the drawn line goes from one corner of the viewport to the opposite.
  4. Type command 'r.DebugSafeZone.Mode 1' to enable drawing safe zones.
  5. Exit PIE.
  6. In the Editor Preferences, change the New Viewport Resolution to something else (may need to be a different aspect ratio).
    • One that seems to cause the issue consistent is is setting it to 1792x828 (iPhone XS Max preset).
  7. Play in New Window again.
  8. Select New Viewport resolution to Mointors > 19 " monitor
  9. Play in New Window again (notice the safe zone offset is still being applied even though we no longer have a safe zone).

RESULT

The drawn line no longers goes to the corners of the viewport. If you restart the editor and PIE again, it's correct again.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-92771 in the post.

5
Login to Vote

Won't Fix
ComponentUE - Editor - UI Systems
Affects Versions4.244.25
CreatedMay 5, 2020
ResolvedJul 19, 2022
UpdatedJul 19, 2022