TAutoConsoleVariable

Autoregistering float, int variable class...this changes that value when the console variable is changed.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FAutoConsoleObject

TAutoConsoleVariable

References

Module

Core

Header

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

Include

#include "HAL/IConsoleManager.h"

Syntax

template<class T>
class TAutoConsoleVariable : public FAutoConsoleObject

Remarks

Autoregistering float, int variable class...this changes that value when the console variable is changed.

Constructors

Name Description

Public function

TAutoConsoleVariable

(
    const TCHAR* Name,
    const T& DefaultValue,
    const TCHAR* Help,
    uint32 Flags
)

Create a float, int or string console variable

Public function

TAutoConsoleVariable

(
    const TCHAR* Name,
    const bool& DefaultValue,
    const TCHAR* Help,
    uint32 Flags
)

Functions

Name Description

Public function Const

T

 

GetValueOnAnyThread

(
    bool bForceGameThread
)

Public function Const

T

 

GetValueOnGameThread()

Public function Const

T

 

GetValueOnRenderThread()

Operators

Name Description

Public function

IConsoleVari...

 

operator*()

Dereference back to a variable

Public function Const

const IConso...

 

operator*()

Public function

IConsoleVari...

 

operator->()

Dereference back to a variable

Public function Const

const IConso...

 

operator->()