Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/SWidget
Description
Just like OnMouseButtonDown, but tunnels instead of bubbling. If this event is handled, OnMouseButtonDown will not be sent.
Use this event sparingly as preview events generally make UIs more difficult to reason about.
| Name | OnPreviewMouseButtonDown |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h |
| Include Path | #include "Widgets/SWidget.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Widgets/SWidget.cpp |
virtual FReply OnPreviewMouseButtonDown
(
const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent
)