FSceneViewport::OnMapCursor

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

Choose your operating system:

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.