UWidget::HasMouseCaptureByUser

Checks to see if this widget is the current mouse captor

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/Widget.h

Include

#include "Components/Widget.h"

Source

/Engine/Source/Runtime/UMG/Private/Components/Widget.cpp

Syntax

bool HasMouseCaptureByUser
(
    int32 UserIndex,
    int32 PointerIndex
) const

Remarks

Checks to see if this widget is the current mouse captor

Returns

True if this widget has captured the mouse with given user and pointer

Parameters

Parameter

Description

User

index to check for capture

Optional

pointer index to check for capture

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