UGameViewportClient::SetHideCursorDuringCapture

Sets whether or not the cursor is hidden when the viewport captures the mouse

Choose your operating system:

Windows

macOS

Linux

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

void SetHideCursorDuringCapture
(
    bool InHideCursorDuringCapture
)

Remarks

Sets whether or not the cursor is hidden when the viewport captures the mouse