Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/FSlateApplicationBase
Description
Sets the focus for the specified user to the specified widget unless that user is focused on a descendant. The widget must be allowed to receive focus.
| Name | SetUserFocusAllowingDescendantFocus |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Application/SlateApplicationBase.h |
| Include Path | #include "Application/SlateApplicationBase.h" |
bool SetUserFocusAllowingDescendantFocus
(
const uint32 InUserIndex,
const FWidgetPath & InFocusPath,
const EFocusCause InCause
)
true if the widget or a descendant is now focused, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| InUserIndex | Index of the user that we want to change the focus of. |
| InFocusPath | WidgetPath to the Widget to being focused. |
| InCause | The reason that focus is changing. |