UWidgetBlueprintLibrary::SetInputMode_UIOnly

Setup an input mode that allows only the UI to respond to user input.

Windows
MacOS
Linux

Deprecated

  • Locking the mouse to the viewport is now controlled by an enum. Call SetInputMode_UIOnlyEx instead

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_UIOnly
(
    APlayerController * Target,
    UWidget * InWidgetToFocus,
    bool bLockMouseToViewport
)

Remarks

Setup an input mode that allows only the UI to respond to user input.

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