How Do I Make Clicking On A Widget Make My Character Play An Animation?

I made a main menu widget where clicking on the widget will cause the player to move. I want to play a wake up animation when the widget is clicked however. How will I be able to do that?

I will be answering this question live: Twitch if you to check it out

Alright, so you can do it in different ways, but I chose to do it dirty.

  • Need to get a reference to that character in someway
  • I did it via GetAllActorsClass
  • This isn’t the most performant way, so however you need to, get that reference properly
  • Screenshot - db224b2ac3f2586b4f7303ca8ddbf74c - Gyazo <—solution on UMG Button OnClicked