cannot remove a control from a parent


I created a control that I intend to remove with the event timer after the animation is finished, but I can’t remove this control, I don’t know where to ask, thank you for your answer.

Check if Cast To MV1 is working.

PS: I’d suggest using meaningful names.

EDIT: If control you mean widget:

  1. Use your Player Controller in Create Hp Widget’s Owning Player.
  2. Use Create Hp Widget’s Return Value variable in Add To Viewport’s Target.
  3. Use Create Hp Widget’s Return Value variable in Remove from Parent’s Target.
1 Like

Hello, when I check if the type is cast to MY1, I found that it was printed twice, then I found that when I walked into the trigger box, the control was created twice, I removed the parent and moved it only once, I don’t know why there is this question, maybe it is the feature of the trigger box, I have added Doonce to block it.

Instead of using On Component Begin Overlap you could try with On Actor Begin Overlap.
Check Actor components.

1 Like