Safe Get Widget
PureSafeGetWidgetNull-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
| Name | Type | Default | Description |
|---|---|---|---|
| Widget | UWidget* | — | Widget parameter |
| WidgetName | FString | — | WidgetName parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | UWidget* | ReturnValue output |
| bIsValid | bool | bIsValid 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.