add_remove_from_parent_node
Adds a RemoveFromParent node to a Blueprint, hiding or removing the specified widget from the viewport, commonly used to close menus.
Instructions
Add a RemoveFromParent node to hide/remove a widget from the viewport.
From Ch. 8 and Ch. 11: Used to close menus. When a player clicks "Resume" on the pause menu, RemoveFromParent removes the widget.
Args: blueprint_name: Blueprint to add the node to widget_variable: Variable holding the widget reference (empty = self) node_position: [X, Y] graph position
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: add_remove_from_parent_node(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_position | No | ||
| blueprint_name | Yes | ||
| widget_variable | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |