Hi!
Situation:
I am learning Unity while trying to develop a prototype for a project in which there are cutscenes that are meant to mimic a vhs tape on a 4:3 CRT TV. I’m dealing with the first of these cutscenes, which is just a text animated to roll up inside a UI with a 4:3 aspect ratio. So it gives me the nice “screen” with two black bars at the sides, which is what I want. So far, so good.
But then I went and applied a shader* that works via adding it as a component to the main camera, in order to enhance the VHS feel, but when I do that, the artifacts cover the whole screen space, including the black bars at the side, as one would expect.
So I figured, why not set the aspect ratio to 4:3 and it looks perfect that way, black bars look solid and clean.But then I go back to gameplay and I need my 16:9 aspect ratio back.
_* The shader I am using is: https://assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/camera-filter-pack-18433_
My question(s):
- Is there a way that I can switch between the 4:3 and 16:9 aspect ratios via script?
- Or maybe there’s a way to apply the shader just to a canvas instead of the camera, leaving the black bars clean?
I have searched for this and could not find anything, so I would really appreciate any tips or information. Thank you in advance!!!