Search Unity

Simple mouse drag...

Discussion in 'Input System' started by Morphus74, Jan 7, 2020.

  1. Morphus74

    Morphus74

    Joined:
    Jun 12, 2018
    Posts:
    174
    New to the new input system and have look in forum for answer, and found nothing :(.

    Is there a way to create an action that only work if you have left mouse button pressed and moving the mouse?

    THank
     
  2. aybe

    aybe

    Joined:
    Feb 20, 2019
    Posts:
    55
    Palineto likes this.
  3. roy432002

    roy432002

    Joined:
    Jun 20, 2019
    Posts:
    18
  4. aybe

    aybe

    Joined:
    Feb 20, 2019
    Posts:
    55
    You should rather ask in same thread for more audience and, sorry, but it's been so long that I forgot and don't use it anymore :)
     
  5. Wolfos

    Wolfos

    Joined:
    Mar 17, 2011
    Posts:
    951
    This is easy to do nowadays. Just add a Vector2 action, add binding with one modifier and configure like this:
    upload_2022-2-11_18-7-49.png
     
    HamTory06 and adsilcott like this.