Search Unity

MouseMovement

Discussion in 'Getting Started' started by Yamf, Jan 31, 2015.

  1. Yamf

    Yamf

    Joined:
    Jan 30, 2015
    Posts:
    4
    I've had trouble using soloely the mouse movement to move my camera in-game without having to press buttons to do so.
    Tried changing the input but i'm not sure what the positive and negative situations would be, as i don't want to be pressing buttons to do so.
    Any ideas?
     
  2. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,620
    Can you show us your code?

    Basically you want a script that calls transform.Rotate(...) with numbers you get from mouse input. Once that's working you'll want to add some scaling so you can control the speed and make it usable. We can't give you specific help unless you're specific with your questions, though.