UGameViewportClient::MapCursor

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

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss