Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Update variable when Input Button

Discussion in 'Visual Scripting' started by LoveXEcchi, Oct 29, 2022.

  1. LoveXEcchi

    LoveXEcchi

    Joined:
    Oct 26, 2022
    Posts:
    1
    Hi !

    I learn Visual Scripting and I want to set my variable isJumping to true when i press the Jump button. But my variable not alway change ! I think it's a framerate related issue and depend if I long press or fast press the jump button.
    When I use On Update Fixed it works...but the input is not always detected...
    If I use Wait For Next Frame, it's become better...but again the variable not always change for isJumpin = true
    Do you have any Idea ?

    Thank you very much !
     

    Attached Files: