Choose your operating system:
Windows
macOS
Linux
| FSlateApplicationBase::SetUserFocus()
|
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Application/SlateApplicationBase.h |
Include |
#include "Application/SlateApplicationBase.h" |
bool SetUserFocus
(
const uint32 InUserIndex,
const FWidgetPath & InFocusPath,
const EFocusCause InCause
)
Sets user focus to the specified widget. The widget must be allowed to receive focus.
true if the widget is now focused, false otherwise.
Parameter |
Description |
---|---|
InUserIndex |
Index of the user that we want to change the focus of. |
InWidget |
WidgetPath to the Widget to being focused. |
InCause |
The reason that focus is changing. |