Skip to main content
Portal Documentation
Discord GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Find Uiwidget With Name

Battlefield 6 Scripting Docs


Battlefield 6 Scripting Docs / mod / mod / FindUIWidgetWithName

Function: FindUIWidgetWithName()

Call Signature

function FindUIWidgetWithName(name, searchRoot): UIWidget;

Defined in: mod/index.d.ts:21998

Returns the UI Widget matching the specified name.

Parameters

Parameter Type
name string
searchRoot UIWidget

Returns

UIWidget

Call Signature

function FindUIWidgetWithName(name): any;

Defined in: mod/index.d.ts:22001

Returns the UI Widget matching the specified name.

Parameters

Parameter Type
name string

Returns

any