UI Jump Button

I can jump by pressing the space bar. I can’t jump by pressing the UI button. Any idea why this isn’t working?

5133701--507716--Capture.PNG 5133701--507719--Capture2.PNG

I don’t understand what your code snippet is supposed to accomplish. I don’t see any jump logic in either method, so why would the character jump?

I am using the Ootii Motion controller. This is the method that I am overriding:

public virtual bool IsJustPressed(KeyCode rKey)
{
    if (!_IsEnabled) { return false; }
    return UnityEngine.Input.GetKeyDown(rKey);
}

This code is an example of how to implement the jump/climb feature using Rewired:

public override bool IsJustPressed(string rAction)
{
    if (!_IsEnabled) return false;
    return player.GetButtonDown(rAction);  
}

When pressing the space bar on the keyboard, the character jumps. If the character is near a wall, it climbs instead of jumps. The motion controller changes the action based on context.

I am trying to override that function so that I can have a UI button jump/climb.

There must be a way to trigger this Jump input using a UI button:
5134739--508007--Capture.PNG