Clear something from HUD after its been drawn?

If I draw a rectangle or something on the HUD, how do I then clear the HUD to erase what has been drawn?

Sorry for noob question, cant seem to find any obvious answers like a “Clear HUD” node

Remove from parent?
Destroy actor?

Destroy what? What would I get a reference to? As far as I know you can’t get a reference to a drawn shape on your HUD?

I’m not trying to delete my HUD i just want to erase or clear a rectangle made with a “Draw Rect” node.

Oh ok, that’s a very different issue then. Alternative could be to draw that in a seperate widget and then destroy it.

Hmm I see thanks! Ill give it a try!

Hey I found my answer. The"Event receive draw HUD" node acts like a tick event. to get it to stop drawing you simply have to create logic that allows you to control the flow of those ticks such as with a boolean.

To erase what has been drawn, you simply redirect the ticking to do anything aside from going to your “Draw Rect” node.

Whatever you draw is only sustained by constant ticking of the draw HUD node. The moment the tick does something else whatever was drawn ceases to be drawn

Hey I found my answer. The"Event receive draw HUD" node acts like a tick event. to get it to stop drawing you simply have to create logic that allows you to control the flow of those ticks such as with a boolean.

To erase what has been drawn, you simply redirect the ticking to do anything aside from going to your “Draw Rect” node.

Whatever you draw is only sustained by constant ticking of the draw HUD node. The moment the tick does something else whatever was drawn ceases to be drawn

Hey I found my answer. The"Event receive draw HUD" node acts like a tick event. to get it to stop drawing you simply have to create logic that allows you to control the flow of those ticks such as with a boolean.

To erase what has been drawn, you simply redirect the ticking to do anything aside from going to your “Draw Rect” node.

Whatever you draw is only sustained by constant ticking of the draw HUD node. The moment the tick does something else whatever was drawn ceases to be drawn