Safe Get Widget

Pure
SafeGetWidget

Null-safe widget getter that logs a warning if the widget is invalid.

Type: Pure (no side effects)
Category: Fortuna|UMG/UI Helpers
Keywords: umg/ui helpers

Inputs

NameTypeDefaultDescription
WidgetUWidget*Widget parameter
WidgetNameFStringWidgetName parameter

Outputs

NameTypeDescription
ReturnValueUWidget*ReturnValue output
bIsValidboolbIsValid output

Example Use Cases

Example 1

Safely access a button reference that may not exist.

Example 2

Get a widget reference with built-in error logging.