FSlateApplicationBase::SetAllUserFocusAllowingDescendantFocus

Sets the focus for all users to the specified widget unless that user is focused on a descendant.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FSlateApplicationBase::SetAllUserFocusAllowingDescendantFocus()

FSlateApplication::SetAllUserFocusAllowingDescendantFocus()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Application/SlateApplicationBase.h

Include

#include "Application/SlateApplicationBase.h"

Syntax

void SetAllUserFocusAllowingDescendantFocus
(
    const FWidgetPath & InFocusPath,
    const EFocusCause InCause
)

Remarks

Sets the focus for all users to the specified widget unless that user is focused on a descendant. The widget must be allowed to receive focus.

Parameters

Parameter

Description

InWidget

WidgetPath to the Widget to being focused.

InCause

The reason that focus is changing.