Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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,654
    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.