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
&40;
FName WidgetName
&41;
Remarks
Sets the child Widget that should receive focus when this UserWidget gets focus using it's name. True if the Widget is set properly. Will return false if we can't find a child widget with the specified name.
Parameters
| Name | Description |
|---|---|
| WidgetName | Name of the Widget to forward the focus to when this widget receives focus. |