r/UnityHelp • • Feb 07 '22

Camera help

I am making a game for my finals project for school but I ran into a problem that I don`t know how to fix. This is my first unity project so I am a beginner. But here is the problem I am making a 2D game and need the camera to be able to move I got that part down now I added a HUD that displays your recourses but when I zoom with the camera the HUD gets zoomed too and goes outside of the players POV how do I lock it so it stays in place? I tried some things like having 2 cameras but I couldn`t make that work I tried making the HUD a UI element 2 but nothing changed pls helppp

2 Upvotes

1 comment sorted by

1

u/SamElTerrible Feb 07 '22

Assuming your HUD is in a canvas, look into UI anchoring.