Download

Problem getting Widget to work.

Hi, I was experimenting with Widgets and I have created a basic Damage Indicator Widget with animation as seen here, However I’m having trouble getting it to work, I set to show up when the key K is pressed on the Character Blueprint, But it does nothing, the only way I got it to work was by setting it to event BeginPlay but that wouldn’t let me trigger it whenever I want, what i’m I doing wrong ? Thanks in advance.

bd675147b5b8ca72165c0ea438e7c3803996c33c.png
004ea41146b46fb6c045ba0832e2c3fd7919f95a.png

Your current method is going to try to spawn a new widget every time you press ‘K’. You need to promote the created widget to a variable, and then use RemoveFromParent either when you release the ‘K’ key, or use a FlipFlop to toggle the menu.

Thank you, the Remove From Parent fixed it.