Search Unity

Setting scene to always be f.ex. 75x75

Discussion in '2D' started by Fredemand, Jun 10, 2019.

  1. Fredemand

    Fredemand

    Joined:
    Jun 6, 2019
    Posts:
    2
    I'm a complete noob working on a roguelike 2d game. This question probably has a simple answer, but i can't seem to find it. I want to set my scene to show exactly 75x75 squares, as this will be the size of my maps (for now). I am to lazy to count tiles as well. Can someone help out?
     
  2. Primoz56

    Primoz56

    Joined:
    May 9, 2018
    Posts:
    369
    you can use a canvas scaler object to have a fixed size of screen, and it will be zoomed in/out if the screen is bigger. this will not take care of different aspect ratios, but theres relatively simple solutions (and different ones) for those too.
     
  3. Fredemand

    Fredemand

    Joined:
    Jun 6, 2019
    Posts:
    2
    Thank you mate, I will try it out when i get home later.