how to use UMG buttons to drive different state in animation blueprint

gap.watchthegap
Mon, 04 May 2020 00:03:33 +0000
UI

Hi there,

I’m new to unreal, and I am stuck with some problem about button in UMG to control each state in state machine. I have watched some tutorial and tried following them, and still didn’t get it.
In my set up, Animation BP, I created variable"Idle to Float" to switch between Idle state to float state. Then in UMG, I create variable “Is Float?” and hook it up with button press, with flip flop in between. My goal was when clicking button it will switch “Is Floating?” to on and off then it will drive “Idle to Float”. I’m not sure I understand it correctly. Please help. Thank you in advance.

Here are my screen shots
screen1
screen2

9 posts - 1 participant