UWidgetBlueprintLibrary::SetInputMode_GameAndUIEx

Setup an input mode that allows only the UI to respond to user input, and if the UI doesn't handle it player input / player controller gets a chance.

Choose your operating system:

Windows

macOS

Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/WidgetBlueprintLibrary.h

Include

#include "Blueprint/WidgetBlueprintLibrary.h"

Source

/Engine/Source/Runtime/UMG/Private/WidgetBlueprintLibrary.cpp

Syntax

static void SetInputMode_GameAndUIEx
(
    APlayerController * PlayerController,
    UWidget * InWidgetToFocus,
    EMouseLockMode InMouseLockMode,
    bool bHideCursorDuringCapture
)

Remarks

Setup an input mode that allows only the UI to respond to user input, and if the UI doesn't handle it player input / player controller gets a chance.

This means that any bound Input events in the widget will be called.