UGameViewportClient::SetLockDuringCapture

Sets whether or not the cursor is locked to the viewport when the viewport captures the mouse

Choose your operating system:

Windows

macOS

Linux

Deprecated

References

Module

Engine

Header

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

Include

#include "Engine/GameViewportClient.h"

Syntax

void SetLockDuringCapture
(
    bool InLockDuringCapture
)

Remarks

Sets whether or not the cursor is locked to the viewport when the viewport captures the mouse