FNetworkPredictionDriverBase::RestoreFrame

RestoreFrame

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

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

Include

#include "NetworkPredictionDriver.h"

Syntax

static void RestoreFrame
(
    DriverType * Driver,
    const SyncType * SyncState,
    const AuxType * AuxState
)

Remarks

RestoreFrame

Called prior to beginning rollback frames. This instance should put itself in whatever state it needs to be in for resimulation to run. In practice this should mean getting right collision+component states in sync so that any scene queries will get the correct data.

This can be automated for physics (the PhysicsState can generically marshal the data). We can't do this for kinematic sims.

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