Hi everyone,
I'm working on a prototype for a game similar to ScourgeBringer, where all UI HUD elements are placed within the blank letterbox section. To achieve this, I created 2 layers:
This first layer contains a black square sprite, sized to create the letterbox effect. This layer also holds all the necessary HUD elements. The second layer is where I have placed all the other nessary game object.
Everything is working fine so far, but I'm now trying to implement a camera zoom system.
My goal is to ensure that the HUD elements within the letterbox remain unaffected by the zoom—meaning they should stay in place and not get obscured. Essentially, I want the zoom to affect only a specific layer rather than the entire layout. Is this possible?
To clarify the issue further, I've attached few videos.
First video – This demonstrates the problem I'm facing.
youtu.be/2utk56SCzFE
Second video – This is ment to show the effect I'm trying to achieve.
youtu.be/Pz0I4rMRTEI
I have also atached a screen shot of the event system I'm using for the zoom effect.
I’d really appreciate any guidance or suggestions! Let me know if any additional details are needed.
Thanks in advance!