FConsoleManager::RegisterConsoleCommand

Register a console command that takes arguments

Windows
MacOS
Linux

Override Hierarchy

IConsoleManager::RegisterConsoleCommand()

FConsoleManager::RegisterConsoleCommand()

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/ConsoleManager.h

Include

#include "HAL/ConsoleManager.h"

Source

/Engine/Source/Runtime/Core/Private/HAL/ConsoleManager.cpp

Syntax

virtual IConsoleCommand * RegisterConsoleCommand
(
    const TCHAR * Name,
    const TCHAR * Help,
    const FConsoleCommandWithWorldAndArgsDelegate & Command,
    uint32 Flags
)

Remarks

Register a console command that takes arguments

Parameters

Parameter

Description

Name

The name of this command (must not be nullptr)

Help

Help text for this command

Command

The user function to call when this command is executed

Flags

Optional flags bitmask

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