Hello I am making a Game in Unity and to Jump I am ussing the Spacebar. Now I have a little glitch that doesn't show the Jump Animation when I press Spacebar. I figured out when I double tab Spacebar the Animation shows perfectly. So is there a way that the Jump function that gets executed when I click the Spacebar automaticly makes another Spacebar hit so it does the double tab but I only have to do one tap on the keyboard?
Asked
Active
Viewed 80 times
-1
-
2Will it not be better to fix the bug of the animation not playing than to hack an extra press into the game – Connor Stoop Apr 30 '21 at 12:06
1 Answers
0
https://docs.unity3d.com/Manual/script-AnimationWindowEvent.html Maybe this is what you're looking for? :)
So basically at any point in your animation you're able to insert a function

Mr.Banks
- 437
- 2
- 7
- 19