- Home /
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
Answer by awsapps · Oct 22, 2021 at 02:26 AM
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. ^^
i see, i used the event trigger-pointer click component and instead of the on click that comes with the UI button, thank you very much! ^^
Your answer
Follow this Question
Related Questions
Jumping on moving platforms problem c# 1 Answer
GUI button to NGUI button ? 1 Answer
Input press to play different animation to input hold? 0 Answers
Jumping only once (2D) 2 Answers
jump and check ground problem! 2 Answers