Module |
|
Header |
/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionDriver.h |
Include |
#include "NetworkPredictionDriver.h" |
static void LogUserStates
(
const TNetworkPredictionState< StateTypes > & UserStates,
FOutputDevice & Ar
)
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