Question by
poohed · Apr 14, 2021 at 02:22 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