How can I know a widget is removed from parent?

Hello. I’d like to switch a view of HUD like below. How do I know a widget is removed from parent?

Perhaps it works if you use the “Get Parent” node ( Get Parent | Unreal Engine Documentation ) and feed it into a “IsValid” node.

Thank you, but it’s output a warnning and not working.

Additionally, it’s working by using only “[IsValid][2]”. I don’t understand very well…

After “Remove From Parent”, dose the variable go non-null and pending kill?

The error appears because you used a “IsVisible” node and not a “IsValid” node.

Just make a Boolean called PauseBoolean. Set the Boolean to true when you create the pause widget, and set the Boolean to false when you remove the widget from parent.

Hope that makes sense and helps!

Oh, I’m sorry it was mistake.
I tried using “IsValid”, but it seem to return always false.

Thank you for your advice. It sounds better, but I’d like to use information the widget has as possible.

When it always return false, then your “Pause HUD” never has a parent.

Thanks. It means that “AddViewport” and “RemoveFromParent” don’t touch a parent of the widget, right? Should I use only “IsVisible” node?