SViewport::OnMouseButtonDown

MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it.

Windows
MacOS
Linux

Override Hierarchy

SWidget::OnMouseButtonDown()

SViewport::OnMouseButtonDown()

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/SViewport.h

Include

#include "Widgets/SViewport.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/SViewport.cpp

Syntax

virtual FReply OnMouseButtonDown
(
    const FGeometry & MyGeometry,
    const FPointerEvent & MouseEvent
)

Remarks

MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. This event is bubbled.

Returns

Whether the event was handled along with possible requests for the system to take action.

Parameters

Parameter

Description

MyGeometry

The Geometry of the widget receiving the event

MouseEvent

Information about the input event

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