Deprecated
Locking the mouse to the viewport is now controlled by an enum. Call SetInputMode_GameAndUIEx instead
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Blueprint/WidgetBlueprintLibrary.h |
Include |
#include "Blueprint/WidgetBlueprintLibrary.h" |
Source |
/Engine/Source/Runtime/UMG/Private/WidgetBlueprintLibrary.cpp |
static void SetInputMode_GameAndUI
(
APlayerController * Target,
UWidget * InWidgetToFocus,
bool bLockMouseToViewport,
bool bHideCursorDuringCapture
)
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.