FNetworkPredictionDriverBase::LogUserStates

ToString

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

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

Include

#include "NetworkPredictionDriver.h"

Syntax

static void LogUserStates
(
    const TNetworkPredictionState< StateTypes > & UserStates,
    FOutputDevice & Ar
)

Remarks

ToString

Utility functions for turning user state into strings. User states can should define ToString(FAnsiStringBuilderBase&) and append ANSI strings to the builder. (E.g, don't use the TEXT macro).

Ansi was chosen because for Trace purposes: We want tracing user state strings to be as fast and efficient as possible for Insights so that it can be enabled during development.

Logging is primary intended as a last resort for printf style debugging. The system should not output UserStates to the log in normal circumstances. (Opting in via cvars or verbose logging categories would be ok).

If you really need to return the string's produced here, use an FStringOutputDevice. Otherwise they will be stacked allocated

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