This may be because it’s running in a window and not fullscreen. You could try the pixelWidth and pixelHeight properties of the current camera instead.
It’s because you’re using raw numbers. You still take 1002. I’d suggest only dividing and multiplying with screen.height/width so you get the same thing with each resolution.
Yeah, I resolved this a while ago. Now i understand this…
On every resolution it was substracting the same numbers, like 1002. Every resolution has different number of pixels, so it can’t resize well…