Unity Issue Tracker - Rendered texture's overlay UI has a different size compared to the rendered texture in the Scene view
Fixed
UUM-12865
Rendered texture's overlay UI has a different size compared to the rendered texture in the Scene view
Unity: RP Foundation
Fixed
2023.2.X
2023.1.X
2021.3.X
Won't Fix
2022.2.X
2022.1.X
2020.3.X
Overlay UI rendering uses render-target resolution instead of the backbuffer resolution when appropriate.
Fixes the UI rendering to use the render-target dimensions instead of the display buffer dimensions when calling ScriptableRenderContext.DrawUIOverlay from an SRP.
2022.1 has reached end of life so the issue will be fixed in a newer version.
Fixed the UI rendering to use the render-target dimensions instead of the display buffer dimensions when calling ScriptableRenderContext.DrawUIOverlay from an SRP.
How to reproduce:
1. Open the attached “CustomSRP” project
2. Select “Main Camera” in the Hierarchy
3. Resize the camera preview in the Scene view
4. Observe the camera preview
Expected result: The red panel is centered and scales correctly when resizing the preview window
Actual result: The red panel is not centered and moves when resizing the preview window
Notes:
1. Same issue occurs when applying the “RenderTexture” target texture to the main camera
2. Correct functionality can be observed in the Game view
Prioritise and Follow this issue
Have a workaround or additional info about this issue?