player jump on UI button release

excuse me sorry for the dumb question but
does anyone got any idea on how to fix a UI jump button where a “player” object will jump on button click not on button release

First, make sure your player have a public method Jump(),

In the button inspector, there is a section “On click”, click the “+” button, drag and drop your player game object, and select the function Jump. ^^