UGameViewportClient::SetConsoleTarget

Sets the player which console commands will be executed in the context of.

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

virtual void SetConsoleTarget
(
    int32 PlayerIndex
)

Remarks

Sets the player which console commands will be executed in the context of.