Navigation
API > API/Plugins > API/Plugins/CommonUI > API/Plugins/CommonUI/UCommonUILibrary
Description
Request a focus refresh from any widget that is a descendant of the leaf-most activated widget. This should be used to handle asynchronous requests to route focus from outside the leaf-most activatable widget. A very common use case is a visualization or asynchronous widget creation from a plugin-injected widget or a widget otherwise unavailable or cumbersome to access from the leaf-most activatable widget.
| Name | RefreshFocusIfLeafmostDescendant |
| Type | function |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonUILibrary.h |
| Include Path | #include "CommonUILibrary.h" |
| Source | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Private/CommonUILibrary.cpp |
UFUNCTION (BlueprintCallable, Category="CommonUI|Focus",
Meta=(DefaultToSelf="ContextWidget", WorldContext="ContextWidget"))
static bool RefreshFocusIfLeafmostDescendant
(
UWidget * ContextWidget
)
Whether or not the request for focus was made