# Floating combat text and memory/widget destruction?

**URL:** <https://forums.unrealengine.com/t/floating-combat-text-and-memory-widget-destruction/444045>\
**Category:** UI\
**Tags:** memory-leak, unreal-engine, memory, Widget, question\
**Created:** [February 24, 2019, 4:11pm UTC](https://forums.unrealengine.com/t/floating-combat-text-and-memory-widget-destruction/444045 "2019-02-24T16:11:38Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 25, 2019, 7:15pm UTC](https://forums.unrealengine.com/t/floating-combat-text-and-memory-widget-destruction/444045/21 "2019-02-25T19:15:39Z")

</div>

> And the clearing functionality will  
> remain the same.

It will actually become significantly easier. You take the enemy out, it removes its canvas widget which will now kill ALL its floating text widgets since they’re the direct children of that canvas.

edit: on the other hand, you’re already removing them once the animation finishes so it’s probably irrelevant.

---

<div class="post-metadata">

**Author:** ![Crowley\_Caine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crowley\_Caine](https://forums.unrealengine.com/u/Crowley_Caine)\
**Post date:** [February 25, 2019, 7:22pm UTC](https://forums.unrealengine.com/t/floating-combat-text-and-memory-widget-destruction/444045/22 "2019-02-25T19:22:59Z")

</div>

That worked ridiculously well. Clever solution, thanks a lot!

 ![269597-combat-text.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/2/e92e0fa8ac7c9d20c627e93ef9cebd12b6ed83b6.png)

And as for the clearing, the player has the clearing functionality, which will now only affects its own widgets.

[Previous page](https://forums.unrealengine.com/t/floating-combat-text-and-memory-widget-destruction/444045.md?page=1)
