- Home /
why I don't have in the butter one click player movement ?
Hi there, I am a programmer and I wanted my player to be able to jump but I don't find the playermovement button, the button where I can also choose jump. would be very nice if someone can help me further.
It doesn't work like that, you have to actually select a script with a method jump. Look up some tutorials first please.
Answer by Link17x · Mar 16, 2020 at 11:40 AM
The button should take a gameObject that has some script on it. Presumably, you have a "PlayerMovement" class that contains some public methods you want to call via the button. In that case, make sure your player has the "PlayerMovement" class, then drag and drop your Player gameObject into the field instead of the rigidbody. Then you should be able to access the function (provided they are public, not private).
Your answer
Follow this Question
Related Questions
isGrounded is always false, even with gravity, how do you fix that? 1 Answer
Player Character looses jump height the further right they go 1 Answer
Why won't my character jump,How do I make my character jump? 2 Answers
how to move and jump at the same time,how to move and jump at the same time 0 Answers