SWidget::HasUserFocus

Gets whether or not the specified users has this widget focused, and if so the type of focus.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h

Include

#include "Widgets/SWidget.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWidget.cpp

Syntax

TOptional< EFocusCause > HasUserFocus
(
    int32 UserIndex
) const

Remarks

Gets whether or not the specified users has this widget focused, and if so the type of focus.

Returns

The optional will be set with the focus cause, if unset this widget doesn't have focus.

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