Heyo. Hopefully this question is in the right place. If not, please move it, because I seriously need help with this. Thanks!
So I got working on a new project that was migrated over from plain C++ to Unity, since this engine is doing everything I needed (except one major thing), and development time is so much better compared to my C++ project. But, with the C++ project, I could do what I needed quite easily with a call to a function named “glViewport().” But with Unity, I’m not sure how I could do this, other than put two random quads above and below my “game area” (and this would seem to me to be a nasty hack that I would like to avoid at al costs…if at all possible…), so I’m asking to get some feedback on whether this engine can do what I need.
Based on my designs, my game needs to have two black bars above and below the “viewport” of the game. I really, really need this to happen, because of the UI I have planned, and the general gameplay depends heavily on this requirement. Failing to meet this requirement would mean redesigning what I had previously come up with.
Here is what I’m talking about: I draw up this picture to describe what I mentioned.

So, even if the window is resized, the game should retain this style of viewport, so it’s not anythign to do with aspect ratio “black bars” like other people have asked about.
Does anyone know how this could be done without the two quads hack? Is frustum culling useful for my game’s needs? If so, how? This would be the first time I’ve ever used frustum culling, so I would need to do a lot of research on this, including trial and error, so if anyone has anything on that, I would appreciate it hugely. Or, is there anything in Unity that mimics what “glViewport()” would do in OpenGL?