Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UUserWidget
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool SetDesiredFocusWidget
(
FName WidgetName |
Sets the child Widget that should receive focus when this UserWidget gets focus using it's name. | Blueprint/UserWidget.h | |
bool SetDesiredFocusWidget
(
UWidget* Widget |
Sets the child Widget that should receive focus when this UserWidget gets focus. | Blueprint/UserWidget.h |
|
SetDesiredFocusWidget(FName)
Description
Sets the child Widget that should receive focus when this UserWidget gets focus using it's name.
| Name | SetDesiredFocusWidget |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include Path | #include "Blueprint/UserWidget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/UserWidget.cpp |
bool SetDesiredFocusWidget
(
FName WidgetName
)
True if the Widget is set properly. Will return false if we can't find a child widget with the specified name.
Parameters
| Name | Remarks |
|---|---|
| WidgetName | Name of the Widget to forward the focus to when this widget receives focus. |
SetDesiredFocusWidget(UWidget *)
Description
Sets the child Widget that should receive focus when this UserWidget gets focus.
| Name | SetDesiredFocusWidget |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include Path | #include "Blueprint/UserWidget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/UserWidget.cpp |
UFUNCTION (BlueprintCallable, Category="User Interface|Focus")
bool SetDesiredFocusWidget
(
UWidget * Widget
)
True if the Widget is set properly. Will return false if it's not a child of this UserWidget.
Parameters
| Name | Remarks |
|---|---|
| Widget | Widget to forward the focus to when this widget receives focus |