Search Unity

Joysticks to work for all screen sizes?

Discussion in '2D' started by DarkNeo, May 28, 2014.

  1. DarkNeo

    DarkNeo

    Joined:
    Apr 27, 2014
    Posts:
    53
    Hi guys,

    I'm having a massive problem trying to get my joysticks to adjust for every resolution, I'm developing for iOS and eventually Android. It seems like NGUI may be my only option. not sure if there are any other ways or tricks out there? I'm using the Penelope joysticks from unity. I have been reading a lot on the net and this seems to be a massive problem for everyone.

    Could anyone help me or steer me in the right direction?


    Thank you.
     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    Have you tried dividing the input by Screen.width or Screen.height? That will make their input constant relative to the total screen size. You can then multiply by any other factor to get to the input range you want.