- Home /
Question by
Warl0ck · Sep 29, 2015 at 01:58 PM ·
buttoncanvasjumping object
Creat Jump Button on Canvas to jump a cube
I am making game for mobile and my main character is a cube/......
I have joystick and all stuff to controll the cube....but only problem is jump
I want to put a button on Canvas so when it get pressed.....a cube get jump...
I know how to put a button on canvas but i don't know how to write a script for it....please someone help me for this
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612035432im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Canvas button with 2 functions onClick must be pressed twice for 2nd function? Will not disappear? 1 Answer
Parent with animator component prevents child buttons to get click 0 Answers
Animator Not Playing on Button Click 0 Answers
Whole Screen Touchable 0 Answers
UI button does not press if colliding with other UI object 1 Answer