SInputKeySelector::OnPreviewMouseButtonDown

Just like OnMouseButtonDown, but tunnels instead of bubbling.

Windows
MacOS
Linux

Override Hierarchy

SWidget::OnPreviewMouseButtonDown()

SInputKeySelector::OnPreviewMouseButtonDown()

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Input/SInputKeySelector.h

Include

#include "Widgets/Input/SInputKeySelector.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/Input/SInputKeySelector.cpp

Syntax

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

Remarks

Just like OnMouseButtonDown, but tunnels instead of bubbling. If this even is handled, OnMouseButtonDown will not be sent.

Use this event sparingly as preview events generally make UIs more difficult to reason about.

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