widgets.find
Finds a named control in a UserWidget's Widget Tree.
Syntax
ue.widgets.find(user_widget: UObjectProxy, name: string) -> UObjectProxy?, string?Parameters
| Parameter | Type | Description |
|---|---|---|
user_widget | UObjectProxy | Owning UUserWidget. |
name | string | Exact Widget Tree name. |
Returns
| Type | Description |
|---|---|
UObjectProxy | Named child widget. |
nil, string | Child was not found. |
Example
local slider = assert(ue.widgets.find(screen, "FovSlider"))