FSlateApplication::SetUserFocus

Sets specified user focus to the [SWidget](API\Runtime\SlateCore\Widgets\SWidget) passed in.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h

Include

#include "Framework/Application/SlateApplication.h"

Source

/Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp

Syntax

bool SetUserFocus
(
    uint32 UserIndex,
    const TSharedPtr< SWidget > & WidgetToFocus,
    EFocusCause ReasonFocusIsChanging
)

Remarks

Sets specified user focus to the SWidget passed in.

Parameters

Parameter

Description

UserIndex

Index of the user to change focus for

WidgetToFocus

the widget to set focus to

ReasonFocusIsChanging

the contextual reason for the focus change

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss