APlayerController::ConsoleCommand

Executes the [Exec()](API\Runtime\CoreUObject\UObject\UF) command on the [UPlayer](API\Runtime\Engine\Engine\UPlayer) object

Windows
MacOS
Linux

Override Hierarchy

APlayerController::ConsoleCommand()

ADebugCameraController::ConsoleCommand()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h

Include

#include "GameFramework/PlayerController.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerController.cpp

Syntax

virtual FString ConsoleCommand
(
    const FString & Command,
    bool bWriteToLog
)

Remarks

Executes the Exec() command on the UPlayer object

Parameters

Parameter

Description

Command

command to execute (string of commands optionally separated by a | (pipe))

bWriteToLog

write out to the log

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