FSceneViewport::SetPlayInEditorGetsMouseControl

Sets whether a PIE viewport takes mouse control on startup.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SceneViewport.h

Include

#include "Slate/SceneViewport.h"

Syntax

void SetPlayInEditorGetsMouseControl
(
    const bool bGetsMouseControl
)

Remarks

Sets whether a PIE viewport takes mouse control on startup.

Parameters

Parameter

Description

bGetsMouseControl

Takes control if true, or not if false.