- Home /
Question by
poohed · Apr 14, 2021 at 03:53 AM ·
inputcontrolsconditional
How would I use "InputAction.started" inside of an if statement?
Hello there, I've been working on a project with Unity's new input system, and want to have a certain segment of code only run when I start inputting a direction, as opposed to just holding down said button and saw that the InputAction class could detect when an action was started, the issue now being that I don't know how I would use InputAction.started inside of a condition, specifically an if statement. Help would be appreciated.
Comment
Your answer
Follow this Question
Related Questions
Key Combo system. where I am going wrong with this? 2 Answers
ps3 controller messed up the normal controls 1 Answer
How to change control keys 3 Answers
Stop movement after button release 1 Answer