Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How can i make a loop on GetKeyDown

Discussion in 'Scripting' started by levijjr6, Nov 14, 2021.

  1. levijjr6

    levijjr6

    Joined:
    Nov 14, 2021
    Posts:
    1
    Hi everyone i have a controller for android vr, but is recognise as a keyboard, when i move the joystick is like press w, but it doesnt continusly press w, just once and when the joystick is back is like press e, i only want to do a camera forward movement like
    Constaly move when w has been pressed (but not hold down) and stop the movement when e is pressed

    Thanks :)))
     
  2. Shreddedcoconut

    Shreddedcoconut

    Joined:
    Jul 30, 2021
    Posts:
    61
    Your question is a bit unclear, could you please elaborate?
     
    Bunny83 likes this.