Skip to content

[BUG] Rendering issue in URP when render scale is not equal to 1.0 #72

@kukumberman

Description

@kukumberman

Describe the bug
Unexpected behaviour of rendering when value of renderScale in UniversalRenderPipelineAsset is not equal to 1.0

Version/Branch of UImGui:
Version: 5.0.0

Unity Version
2022.3.22f1

Render pipeline (HDRP / URP / Built-in)
URP

Expected behavior
Properly render elements regardless of renderScale

Screenshots

2024-11-20.23-50-35.mp4
2024-11-20.23-51-34.mp4

Additional context
I tried to submit current renderScale at the beginning of OnLayout callback but issue persists, you can see result in 2nd video:

var scale = Vector2.one * _urpAsset.renderScale;
var io = ImGui.GetIO();
io.NativePtr->DisplayFramebufferScale = scale;

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions