i want to create a grid which divides the screen into equal parts. and i want to be able to dynamically change the amount of rows in both x and y. all that using tiles.
as an example: screen res is 1920:1080 and i want 48 horizontal and 27 vertical. now each tile must be resized, which is no problem, but how do i tell the tiles which size to take to match the screen? it should be 40 by 40 pixels each, but i don’t know how to translate that to unity
im using c#btw.
thanks in advance