SWidget::OnFocusChanging

Called whenever a focus path is changing on all the widgets within the old and new focus paths

Windows
MacOS
Linux

Deprecated

  • Please use the newer version of OnFocusChanging that takes a FocusEvent

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

virtual void OnFocusChanging
(
    const FWeakWidgetPath & PreviousFocusPath,
    const FWidgetPath & NewWidgetPath
)

Remarks

Called whenever a focus path is changing on all the widgets within the old and new focus paths

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