I cannot detect if space-bar key was pressed, I have following code:
void Update() {
// Working
if (Input.anyKeyDown) {
Debug.Log("anyKeyDown");
}
// Not working
if (Input.GetButtonDown("Jump")) {
Debug.Log("GetButtonDown - Jump");
}
// Not working
if (Input.GetKeyDown(KeyCode.Space) || Input.GetKeyDown("space")) {
Debug.Log("KeyCode.Space");
}
// Working
if (Input.GetKeyDown(KeyCode.A)) {
Debug.Log("A");
}
}
I can detect if e.g. A was clicked but its not working for Input.GetButtonDown("Jump") or for Input.GetKeyDown(KeyCode.Space) || Input.GetKeyDown("space")
Below you can see image from my console:
I am using default unity Input Manager settings, I can see two Jumps configured:



Positive buttonforJumpsto any other character e.g.a, I can detect it byInput.GetButtonDown("Jump"). Looks odd. There is info noteConsider using new Input System Package instead, maybe I will try go this direction