Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidgetBlueprintLibrary
Description
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.
Note: This means that any bound Input events in the widget will be called.
| Name | SetInputMode_GameAndUIEx |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/WidgetBlueprintLibrary.h |
| Include Path | #include "Blueprint/WidgetBlueprintLibrary.h" |
| Source | /Engine/Source/Runtime/UMG/Private/WidgetBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, BlueprintCosmetic, Category="Input",
Meta=(DisplayName="Set Input Mode Game And UI"))
static void SetInputMode_GameAndUIEx
(
APlayerController * PlayerController,
UWidget * InWidgetToFocus,
EMouseLockMode InMouseLockMode,
bool bHideCursorDuringCapture,
const bool bFlushInput
)