I’ve built a 720x480 web browser game, but when I go to fullscreen it changes to a 4:3 aspect ratio. I cannot find any settings to allow me to control this.
Does anyone know why it doesn’t retain it’s aspect ratio, or how to force it to do so?
thanks
Kevin
Nobody had/solved this problem?
You could reduce the width of the camera view using its normalized viewport rect property. The width is given as a fraction of the total screen width, so the correct value for the width would be:-
viewRectWidth = Screen.height * desiredAspectRatio / Screen.width
The correct X position for the rectangle is then:-
rect.x = (1.0 - viewRectWidth) * 0.5;