FRootMotionSourceGroup::UpdateStateFrom

Update contained Sources to state in matching sources from other group.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/RootMotionSource.h

Include

#include "GameFramework/RootMotionSource.h"

Source

/Engine/Source/Runtime/Engine/Private/GameFramework/RootMotionSource.cpp

Syntax

void UpdateStateFrom
(
    const FRootMotionSourceGroup & GroupToTakeStateFrom,
    bool bMarkForSimulatedCatchup
)

Remarks

Update contained Sources to state in matching sources from other group. Used for correcting root motion state when receiving authoritative state from server.

Returns

whether it successfully updated state

Parameters

Parameter

Description

GroupToTakeStateFrom

the Authoritative Group to take state from

bMarkForSimulatedCatchup

marks Sources as needing to return to their current Time on next Prepare