SWidget::OnMapCursor

After OnCursorQuery has specified a cursor type the system asks each widget under the mouse to map that cursor to a widget.

Windows
MacOS
Linux

Override Hierarchy

SWidget::OnMapCursor()

SViewport::OnMapCursor()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h

Include

#include "Widgets/SWidget.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWidget.cpp

Syntax

virtual TOptional< TSharedRef< SWidget > > OnMapCursor
(
    const FCursorReply & CursorReply
) const

Remarks

After OnCursorQuery has specified a cursor type the system asks each widget under the mouse to map that cursor to a widget. This event is bubbled.

Returns

TOptional<TSharedRef>() if you don't have a mapping otherwise return the Widget to show.

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