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

ISlateViewport::OnMapCursor()

FSceneViewport::OnMapCursor()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h

Include

#include "Rendering/RenderingCommon.h"

Syntax

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

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