UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Net::TReplicationFragment< T, ReplicationStateT > Class Template Reference

#include <TypedReplicationFragment.h>

+ Inheritance diagram for UE::Net::TReplicationFragment< T, ReplicationStateT >:

Public Member Functions

 TReplicationFragment (T &OwnerIn)
 
 TReplicationFragment (T &OwnerIn, ReplicationStateT &SrcReplicationState)
 
void Register (FFragmentRegistrationContext &Context)
 

Protected Member Functions

virtual void ApplyReplicatedState (FReplicationStateApplyContext &Context) const override
 
- Protected Member Functions inherited from UE::Net::FReplicationFragment
 FReplicationFragment (const FReplicationFragment &)=delete
 
FReplicationFragmentoperator= (const FReplicationFragment &)=delete
 
 FReplicationFragment (EReplicationFragmentTraits InTraits)
 
virtual ~FReplicationFragment ()
 
EReplicationFragmentTraits GetTraits () const
 
virtual void CollectOwner (FReplicationStateOwnerCollector *Owners) const
 
virtual void CallRepNotifies (FReplicationStateApplyContext &Context)
 
virtual bool PollReplicatedState (EReplicationFragmentPollFlags PollOption=EReplicationFragmentPollFlags::PollAllState)
 
virtual void ReplicatedStateToString (FStringBuilderBase &StringBuilder, FReplicationStateApplyContext &Context, EReplicationStateToStringFlags Flags=EReplicationStateToStringFlags::None) const
 

Additional Inherited Members

- Protected Attributes inherited from UE::Net::FReplicationFragment
EReplicationFragmentTraits Traits
 

Constructor & Destructor Documentation

◆ TReplicationFragment() [1/2]

UE::Net::TReplicationFragment< T, ReplicationStateT >::TReplicationFragment ( T &  OwnerIn)
inlineexplicit

◆ TReplicationFragment() [2/2]

UE::Net::TReplicationFragment< T, ReplicationStateT >::TReplicationFragment ( T &  OwnerIn,
ReplicationStateT SrcReplicationState 
)
inline

Member Function Documentation

◆ ApplyReplicatedState()

void UE::Net::TReplicationFragment< T, ReplicationStateT >::ApplyReplicatedState ( FReplicationStateApplyContext Context) const
overrideprotectedvirtual

This is called from the ReplicationSystem / ReplicationBridge whenever we have new data Depending on the traits of the fragment we either get pointer to a StateBuffer in the expected external format including changemask information or we get the raw quantized state buffer along with the changemask information for any received states.

Implements UE::Net::FReplicationFragment.

◆ Register()


The documentation for this class was generated from the following file: