struct

NetAnimationStateComponent

The replicated animation state of a networked character — UE's replicated-montage plus the handful of graph parameters a remote AnimInstance would otherwise derive from replicated movement.

Module
Networking
Header
#include "Networking/Components/NetAnimationStateComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

The server samples the animator into the MREPLICATED mirror below every tick (FAnimationNetDriver::ServerPublish); the mirror rides the ordinary field-delta streams — ids and flags reliably, the montage playhead and the float parameters unreliably, the way health and position already do — and a client writes it back onto its ghost's animator. Names are authored on the component and never on the wire: both ends load the same prefab, so a float slot means the same parameter on both.

Montage identity is a NAME and the wire carries its hash. A montage ASSET (.montage) supplies that name itself and the sample registers it on both ends automatically; a montage still living in a model's .manimmeta sidecar has to be registered by hand (RegisterMontage) because nothing about it names it to the other end. Either way a montage that was never registered plays locally and replicates nothing — the sample logs it once.

Properties

TypeNameDescription
static constexpr uint32_tkMaxFloatParamsDefault 4.
static constexpr uint32_tkMaxBoolParamsDefault 32.
std::vector<std::string>floatParamNames
std::vector<std::string>boolParamNames
floatmontageSnapThresholdA remote montage playhead that drifts less than this is nudged toward the server's; past it the montage is re-seeked outright. Default 0.25f.
floatmontageSmoothingRateDefault 8.0f.
floatmontagePredictionWindowHow long an owner-predicted montage keeps playing while the server has not confirmed it. Past this the client assumes the server refused it. Default 0.5f.
uint32_tstateIdDefault 0.
uint32_tmontageIdDefault 0.
uint32_tmontageSerialBumped on every start, restart and stop, so a client that already plays this montage can tell a restart from a redundant resend. Default 0.
uint32_tmontageSectionDefault 0.
uint32_tboolParamsDefault 0.
floatmontagePositionDefault 0.0f.
floatplayRateDefault 1.0f.
floatfloatParam0Default 0.0f.
floatfloatParam1Default 0.0f.
floatfloatParam2Default 0.0f.
floatfloatParam3Default 0.0f.
const Montage*sampledMontageServer sample: what the animator played last tick, so a pointer change or a playhead rewind reads as a start / restart. Default nullptr.
floatsampledPositionDefault 0.0f.
boolunregisteredMontageWarnedDefault false.
uint32_tappliedMontageSerialClient apply. Default 0.
uint32_tappliedStateIdDefault 0.
floatlastSeenMontagePositionDefault -1.0f.
floatserverPositionAgeDefault 0.0f.
boolmontageResolveWarnedDefault false.
boolpredictedMontagePendingOwner prediction: a montage the owning client started locally and is waiting for the server to confirm. Default false.
uint32_tpredictedMontageIdDefault 0.
floatpredictedMontageAgeDefault 0.0f.
std::vector<std::pair<uint32_t, const Montage*>>montageTable

Public functions

ReturnsNameDescription
uint32_tHashNameFNV-1a over the name; 0 is reserved for "none", so a name that hashes to it is nudged.
uint32_tHashName
voidRegisterMontage
const Montage*FindMontage
uint32_tFindMontageId
floatGetFloatParam
voidSetFloatParam
boolGetBoolParam
voidSetBoolParam

Function details

HashName

C++
static uint32_t HashName(const char* name)

FNV-1a over the name; 0 is reserved for "none", so a name that hashes to it is nudged.

HashName

C++
static uint32_t HashName(const std::string& name)

RegisterMontage

C++
void RegisterMontage(const char* name, const Montage* montage)

FindMontage

C++
const Montage* FindMontage(uint32_t id) const

FindMontageId

C++
uint32_t FindMontageId(const Montage* montage) const

GetFloatParam

C++
float GetFloatParam(uint32_t index) const

SetFloatParam

C++
void SetFloatParam(uint32_t index, float value)

GetBoolParam

C++
bool GetBoolParam(uint32_t index) const

SetBoolParam

C++
void SetBoolParam(uint32_t index, bool on)
Generated from Networking/Components/NetAnimationStateComponent.h via networking.json · Nov 4, 2026Version 1.0.0