TNetworkSimBufferBase::WriteFrameInitializedFromHeadImpl

Creates a new frame, but -If frame already exists, returns existing -If frame > head, contents of head are copied into new frame -If frame < tail, contents are cleared to default value (this function is sketchy and poorly named but is proving to be useful in a few places)

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

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

Include

#include "NetworkedSimulationModelBuffer.h"

Syntax

template<typename ElementType>
ElementType * WriteFrameInitializedFromHeadImpl
(
    int32 Frame
)

Remarks

Creates a new frame, but -If frame already exists, returns existing -If frame > head, contents of head are copied into new frame -If frame < tail, contents are cleared to default value (this function is sketchy and poorly named but is proving to be useful in a few places)

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