widgets.remove
Removes a widget from its parent.
Syntax
ue.widgets.remove(widget: UObjectProxy) -> boolean?, string?Parameters
| Parameter | Type | Description |
|---|---|---|
widget | UObjectProxy | Any UWidget proxy. |
Returns
| Type | Description |
|---|---|
true | RemoveFromParent succeeded. |
nil, string | Reflected call failed. |
Example
if screen:is_valid() then
ue.widgets.remove(screen)
end