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.


FilipPreradovic_ResumeVG.pdf (27.5 KB)

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.