UPlayer::ConsoleCommand

Executes the [Exec()](API\Runtime\Core\Misc\FExec\Exec\2) command

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Player.h

Include

#include "Engine/Player.h"

Source

/Engine/Source/Runtime/Engine/Private/Player.cpp

Syntax

FString ConsoleCommand
(
    const FString & Cmd,
    bool bWriteToLog
)

Remarks

Executes the Exec() command

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
Cancel