try it
@Abuzhis,
look at this. A month ago I had the same issue. And yeah, I found the solution:
-
[In-side of Widget]
it’s in-Game-HUD. Three buttons: Jump, Pause and 2(It’s for speed increasing).
Let’s look inside Jump button -
[In-side of Widget]
I cast Jump-button to “EventJumpButton” in PlayerController. I used BP_Interface, it’s same as “Cast to PlayerController”. -
[In-side of PlayerController]
Here I cast to EventFromMyControllerJump, which placed in Character(It’s TopDownCharacter from TopDownTemplate). -
[In-side of TopDownCharacter]
and here is our Jump-function(It’s inherited). -
[In-side PlayerController]
How I initialized this HUD.
Created a function InGameMenu, starting with EventBeginPlay. -
[In-side PlayerController]
This is inside of InGameMenu-function.
waiting for response