Hi there, I have been trying to figure out how to support different screen resolutions and aspect ratios and I’ve finally managed to get a script working but the problem is that it cuts off about a tenth of the screen at the top and I don’t know why or how to fix it, so I guess my question is do you know how to fix this?
void Start(){
float width = Screen.width / 440f;
float height = Screen.height / 724f;
Camera.main.rect = new Rect(0,0,1,width/height);
}