FAutoConsoleVariableSink

Auto registering console variable sinks (register a callback function that is called when ever a cvar is changes by the user, changes are grouped and happen in specific engine spots during the frame/main loop)

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "HAL/IConsoleManager.h"

Syntax

class FAutoConsoleVariableSink

Remarks

Auto registering console variable sinks (register a callback function that is called when ever a cvar is changes by the user, changes are grouped and happen in specific engine spots during the frame/main loop)

Variables

Name Description

Public variable

const FConsoleC...

 

Command

Public variable

FConsoleVariabl...

 

Handle

Constructors

Name Description

Public function

FAutoConsoleVariableSink

(
    const FConsoleCommandDelegate& InC...
)

Constructor, saves the argument for future removal from the console variable system

Destructors

Name Description

Public function Virtual

~FAutoConsoleVariableSink()

Destructor, removes the console variable sink

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