UGameViewportClient::MapCursor

Called to map a cursor reply to an actual widget to render.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FViewportClient::MapCursor()

UGameViewportClient::MapCursor()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h

Include

#include "Engine/GameViewportClient.h"

Source

/Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp

Syntax

virtual TOptional< TSharedRef< SWidget > > MapCursor
(
    FViewport * Viewport,
    const FCursorReply & CursorReply
)

Remarks

Called to map a cursor reply to an actual widget to render.

Returns

the widget that should be rendered for this cursor, return TOptional<TSharedRef>() if no mapping.