SWidget::HasAnyUserFocus

Gets whether or not any users have this widget focused, and if so the type of focus (first one found).

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 > HasAnyUserFocus() const

Remarks

Gets whether or not any users have this widget focused, and if so the type of focus (first one found).

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