HDRP-UI-Camera-Stacking icon indicating copy to clipboard operation
HDRP-UI-Camera-Stacking copied to clipboard

Changing aspect ratio?

Open AbandonedSoul opened this issue 2 years ago • 1 comments

Hi

Thanks for the great package! But there is one problem I've encountered, the UI do not display on the same view rect as main camera. If I change the view rect at runtime, the UI still displays on the old one and becomes stretched. Is there anyway to force HDRP UI Camera to keep the same view rect as main camera?

AbandonedSoul avatar Jun 05 '22 18:06 AbandonedSoul

Hello,

Right now there is nothing that allows keeping the same aspect ratio between the two cameras. The way the code is designed makes it impossible to know which UI Camera will go into which camera, so we can't adjust the aspect ratio on the fly as we don't know the target camera.

alelievr avatar Jul 26 '22 17:07 alelievr