Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Change camera size depending on device

Discussion in '2D' started by DanielX95, Aug 29, 2017.

  1. DanielX95

    DanielX95

    Joined:
    Apr 25, 2017
    Posts:
    24
    Hi guys,

    i'm new with Unity, i came from SpriteKit. How can i change the camera size depending on which devices i'm using? For example, i want the camera size increases a little if i run my game on an iPad and so on.

    in SpriteKit i'm used to use a simple function with a switch inside it. What about Unity?

    Best regards.
     
  2. irfan-ayub

    irfan-ayub

    Joined:
    May 22, 2017
    Posts:
    3
    If you are talking about UI sprites, you can set your canvas to "scale with screen size" in the inspector and it should work fine. and get your work done.

    upload_2017-8-29_15-0-13.png

    Best of Luck for you experience with unity. :)
     
  3. DanielX95

    DanielX95

    Joined:
    Apr 25, 2017
    Posts:
    24
    Thanks it worked :)