how to resize my orthographic Camera to fit a dynamically generated grid of cubes(Mine Sweeper)
I'm trying to make a minesweeper game, and I want the size of the grid to be determined by user preferences and also want the camera to resize in a way that the grid fills the screen in terms of width since it will be played on portrait screen orientation .
now I can make the camera fit predefined sized by having different scenes for different grids, or perhaps I can make the user change the positioning and scale of camera once game start to better fit the screen, but my question is how do I do it programmatically?
Comment