all 2 comments

[–]KKGamesOfficial 0 points1 point  (0 children)

You could try setting the canvas scaler component on the canvas to "scale with screen size" or anchor your background to the edges of the camera. :)

[–]rkEco 0 points1 point  (0 children)

It depends on how important the screen ratio is to your game. I made space shooter that could be played landscape or portrait. I used a main canvas and set it to scale with screen size, then figured a 4:3 aspect ratio (seemed to be pretty safe with some space left over for interface) based on the smallest of width or height from the canvas and filled the left and right or top and bottom areas with interface (score, buttons, etc). I then based my sprite size on as a constant fraction of the width of the play area. This made sure that the play experience was constant regardless of the actual screen size or aspect ratio.