Search Unity

Mobile app help!

Discussion in 'Getting Started' started by KBurkus, Feb 10, 2015.

  1. KBurkus

    KBurkus

    Joined:
    Feb 1, 2015
    Posts:
    12
    I have made a game for windows, and I want to make it into an app.
    I can't seem to figure out how to make it be able to move on mobile, like a joystick.
    Any help would be great.
     
  2. Gekigengar

    Gekigengar

    Joined:
    Jan 20, 2013
    Posts:
    738
    Get Initial touch position, get touch delta, then normalize, register as virtual input.x/y

    I use the virtual input manager from the Unity 4.6 sample scene.

    There are touchpad scripts there, its closely similar.
     
    elmar1028 likes this.