Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint > API/Runtime/UMG/Blueprint/UUserWidget > API/Runtime/UMG/Blueprint/UUserWidget/SetDesiredFocusWidget
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include | #include "Blueprint/UserWidget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/UserWidget.cpp |
bool SetDesiredFocusWidget
(
UWidget * Widget
)
Remarks
Sets the child Widget that should receive focus when this UserWidget gets focus. True if the Widget is set properly. Will return false if it's not a child of this UserWidget.
Parameters
| Name | Description |
|---|---|
| Widget | Widget to forward the focus to when this widget receives focus |