widgets.find

Finds a named control in a UserWidget's Widget Tree.

Syntax

ue.widgets.find(user_widget: UObjectProxy, name: string) -> UObjectProxy?, string?

Parameters

ParameterTypeDescription
user_widgetUObjectProxyOwning UUserWidget.
namestringExact Widget Tree name.

Returns

TypeDescription
UObjectProxyNamed child widget.
nil, stringChild was not found.

Example

local slider = assert(ue.widgets.find(screen, "FovSlider"))

On this page