FindConsoleVarHelper

"Shipping const" cvars: cvars that should compile out to const functions in shipping/test builds This got a little tricky due to templated usage across different modules.

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

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

Include

#include "NetworkPredictionCVars.h"

Syntax

IConsoleVariable * FindConsoleVarHelper
(
    const TCHAR * VarName
)

Remarks

"Shipping const" cvars: cvars that should compile out to const functions in shipping/test builds This got a little tricky due to templated usage across different modules. Previous patterns for this thing didn't work. This implementation requires manual finding of consolve variables so will be a bit slower but shouldn't matter since it is compiled out of shipping/test.

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