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

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SceneViewport.h

Include

#include "Slate/SceneViewport.h"

Source

/Engine/Source/Runtime/Engine/Private/Slate/SceneViewport.cpp

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