TAutoConsoleVariable

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

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
)

Public function

TAutoConsoleVariable

(
    const TCHAR * Name,
    const float& 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->()

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback