Post by chema on Apr 8, 2024 9:22:29 GMT
Hello! It's my first time posting here, but I need help with an issue I'm having with this plugin and Unity (URP).
The thing is, I have a canvas that contains the pause menu with a blur panel affecting the background, so that the gameplay remains blurred while the menu is perfectly visible. Due to the menu layout, I need the canvas to be in "screen space - camera" mode, because when the game is played in 16:9 mode everything works fine, but in ultrawide mode I need to maintain the 16:9 aspect ratio, and I achieve this with the content fitter.
The issue is that when I put the canvas for the pause menu (with its blur), it affects everything on the canvas, including texts and UI elements, so I've created two cameras. One for UI (texts and content) that isn't affected by post-processing effects like blur, and another for gameplay (which does get blurred), and so far so good. The problem is that I need the content fitter to work with both cameras (to restrict gameplay to 16:9 and to adjust the menu to this proportion as well). But when I activate the content fitter on both cameras, nothing is rendered (everything is black). If I deactivate it on the UI camera, everything appears behind the black sidebars (it's adjusting to the camera, but the camera has an ultrawide format, so it doesn't work for me).
Is there any way to make both cameras adjust to a 16:9 format, even if the resolution is ultrawide?
I hope I've been clear in describing the problem, and thank you very much in advance! I look forward to your responses. Best regards!
EDIT: I checked that the option "Use Letter/Pillarboxing" checked is what causes this blacked screen. If you need more information about my settings just let me know!
The thing is, I have a canvas that contains the pause menu with a blur panel affecting the background, so that the gameplay remains blurred while the menu is perfectly visible. Due to the menu layout, I need the canvas to be in "screen space - camera" mode, because when the game is played in 16:9 mode everything works fine, but in ultrawide mode I need to maintain the 16:9 aspect ratio, and I achieve this with the content fitter.
The issue is that when I put the canvas for the pause menu (with its blur), it affects everything on the canvas, including texts and UI elements, so I've created two cameras. One for UI (texts and content) that isn't affected by post-processing effects like blur, and another for gameplay (which does get blurred), and so far so good. The problem is that I need the content fitter to work with both cameras (to restrict gameplay to 16:9 and to adjust the menu to this proportion as well). But when I activate the content fitter on both cameras, nothing is rendered (everything is black). If I deactivate it on the UI camera, everything appears behind the black sidebars (it's adjusting to the camera, but the camera has an ultrawide format, so it doesn't work for me).
Is there any way to make both cameras adjust to a 16:9 format, even if the resolution is ultrawide?
I hope I've been clear in describing the problem, and thank you very much in advance! I look forward to your responses. Best regards!
EDIT: I checked that the option "Use Letter/Pillarboxing" checked is what causes this blacked screen. If you need more information about my settings just let me know!