FConditionalAutoConsoleRegister

This is required because these cvars live in header files that will be included across different compilation units Just using standard [FAutoConsoleVariableRef](API\Runtime\Core\HAL\FAutoConsoleVariableRef) will cause multiple registrations of the same variable

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionCVars.h

Include

#include "NetworkPredictionCVars.h"

Syntax

struct FConditionalAutoConsoleRegister

Remarks

This is required because these cvars live in header files that will be included across different compilation units Just using standard FAutoConsoleVariableRef will cause multiple registrations of the same variable

Constructors

Name Description

Public function

FConditionalAutoConsoleRegister

(
    const TCHAR* VarName,
    int32 Value,
    const TCHAR* Help
)

Public function

FConditionalAutoConsoleRegister

(
    const TCHAR* VarName,
    float Value,
    const TCHAR* Help
)

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