SViewport::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

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 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