Navigation
API > API/Plugins > API/Plugins/ReplicationGraph
Manages actor replication for a specific connection
| Name | UNetReplicationGraphConnection |
| Type | class |
| Header File | /Engine/Plugins/Runtime/ReplicationGraph/Source/Public/ReplicationGraph.h |
| Include Path | #include "ReplicationGraph.h" |
Syntax
UCLASS (MinimalAPI, Transient)
class UNetReplicationGraphConnection : public UReplicationConnectionDriver
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UReplicationConnectionDriver → UNetReplicationGraphConnection
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UNetReplicationGraphConnection() |
ReplicationGraph.h |
Structs
| Name | Remarks |
|---|---|
| FCachedDestructInfo | DestructionInfo handling. |
| FCachedDormantDestructInfo | |
| FRepGraphDestructionViewerInfo | Holds relevant data when parsing deleted actors that could be sent to a viewer |
| FVisibleCellInfo |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnClientVisibleLevelNamesAdd | TMulticastDelegate_TwoParams< void, FName, UWorld * > | ReplicationGraph.h | |
| FOnClientVisibleLevelNamesRemove | TMulticastDelegate_OneParam< void, FName > | ReplicationGraph.h | |
| FOnPostReplicatePrioritizedLists | TMulticastDelegate_TwoParams< void, UNetReplicationGraphConnection *, FPrioritizedRepList * > | ReplicationGraph.h | |
| FRepGraphDestructionViewerInfoArray | TArray< FRepGraphDestructionViewerInfo, TInlineAllocator< 4 > > | ReplicationGraph.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActorInfoMap | FPerConnectionActorInfoMap | A map of all of our per-actor data | ReplicationGraph.h | |
| bEnableDebugging | bool | ReplicationGraph.h | ||
| bEnableFullActorPrioritizationDetails | bool | Stored list of dormant actors in a previous cell when it's been left - this is for the dormant dynamic actor destruction feature. | ReplicationGraph.h | |
| ConnectionOrderNum | int32 | Index of the connection in the global list. | ReplicationGraph.h | |
| DebugActor | TWeakObjectPtr< class AReplicationGraphDebugActor > | ReplicationGraph.h | ||
| FastPathSaturationAnalytics | FRepGraphConnectionSaturationAnalytics | ReplicationGraph.h | ||
| LastGatherLocations | TArray< FLastLocationGatherInfo > | ReplicationGraph.h | ||
| NetConnection | TObjectPtr< UNetConnection > | ReplicationGraph.h | ||
| OnClientVisibleLevelNameAdd | FOnClientVisibleLevelNamesAdd | ReplicationGraph.h | ||
| OnClientVisibleLevelNameAddMap | TMap< FName, FOnClientVisibleLevelNamesAdd > | ReplicationGraph.h | ||
| OnClientVisibleLevelNameRemove | FOnClientVisibleLevelNamesRemove | ReplicationGraph.h | ||
| OnPostReplicatePrioritizeLists | FOnPostReplicatePrioritizedLists | ReplicationGraph.h | ||
| QueuedBitsForActorDiscovery | int32 | Nb of bits sent for actor channel creation when a dedicated budget is allocated for this. | ReplicationGraph.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedVisibleLevels | TSet< FName > | List of level names visible to this connection. Valid during the Gather phase | ReplicationGraph.h | |
| ConnectionGraphNodes | TArray< TObjectPtr< UReplicationGraphNode > > | ReplicationGraph.h | ||
| NodesVisibleCells | TMap< TObjectKey< UReplicationGraphNode >, TArray< FVisibleCellInfo > > | History of visible cells per graph node used for defering dormant dynamic actors cleanup. | ReplicationGraph.h | |
| OutOfRangeDestroyedActors | TArray< FCachedDestructInfo > | List of destroyed actors that were too far from the connection to be relevant. | ReplicationGraph.h | |
| PendingDestructInfoList | TArray< FCachedDestructInfo > | List of destroyed actors that need to be replicated | ReplicationGraph.h | |
| PendingDormantDestructList | TArray< FCachedDormantDestructInfo > | List of dormant actors that should be removed from the client | ReplicationGraph.h | |
| PrevDormantActorListPerNode | TMap< TObjectKey< UReplicationGraphNode >, FActorRepListRefView > | Stored list of dormant actors in a previous cell when it's been left - this is for the dormant dynamic actor destruction feature. | ReplicationGraph.h | |
| TearOffNode | TObjectPtr< UReplicationGraphNode_TearOff_ForConnection > | ReplicationGraph.h | ||
| TrackedDestructionInfoPtrs | TSet< FActorDestructionInfo * > | Set used to guard against double adds into PendingDestructInfoList | ReplicationGraph.h | |
| TrackedDormantDestructionInfos | TSet< FNetworkGUID > | Set used to guard against double adds into PendingDormantDestructList | ReplicationGraph.h | |
| UReplicationGraph | friend | ReplicationGraph.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CleanupNodeCaches
(
const UReplicationGraphNode* Node |
ReplicationGraph.h | ||
const TSet< FName > & GetCachedClientVisibleLevelNames() |
Returns the list of visible levels cached at the start of the gather phase. | ReplicationGraph.h | |
virtual void GetClientVisibleLevelNames
(
TSet< FName >& OutLevelNames |
Generates a set of all the visible level names for this connection and its subconnections (if any) | ReplicationGraph.h | |
const TArray< UReplicationGraphNode * > & GetConnectionGraphNodes () |
Returns connection graph nodes. | ReplicationGraph.h | |
FActorRepListRefView & GetPrevDormantActorListForNode
(
const UReplicationGraphNode* GridNode |
ReplicationGraph.h | ||
TArray< FVisibleCellInfo > & GetVisibleCellsForNode
(
const UReplicationGraphNode* GridNode |
ReplicationGraph.h | ||
virtual void NotifyActorChannelAdded
(
AActor* Actor, |
ReplicationGraph.h | ||
virtual void NotifyActorChannelCleanedUp
(
UActorChannel* Channel |
ReplicationGraph.h | ||
virtual void NotifyActorChannelRemoved
(
AActor* Actor |
ReplicationGraph.h | ||
virtual void NotifyAddDestructionInfo
(
FActorDestructionInfo* DestructInfo |
ReplicationGraph.h | ||
virtual void NotifyAddDormantDestructionInfo
(
AActor* Actor |
ReplicationGraph.h | ||
virtual void NotifyClientVisibleLevelNamesAdd
(
FName LevelName, |
ReplicationGraph.h | ||
virtual void NotifyClientVisibleLevelNamesRemove
(
FName LevelName |
ReplicationGraph.h | ||
virtual void NotifyDSFNodeSaturated
(
const UReplicationGraphNode_DynamicSpatialFrequency* Node |
ReplicationGraph.h | ||
virtual void NotifyRemoveDestructionInfo
(
FActorDestructionInfo* DestructInfo |
ReplicationGraph.h | ||
virtual void NotifyResetAllNetworkActors() |
ReplicationGraph.h | ||
virtual void NotifyResetDestructionInfo() |
ReplicationGraph.h | ||
void RemoveActorFromAllPrevDormantActorLists
(
AActor* InActor |
ReplicationGraph.h | ||
virtual void ResetSaturationAnalytics() |
ReplicationGraph.h | ||
virtual void Serialize
(
FArchive& Ar |
ReplicationGraph.h | ||
virtual void TearDown() |
ReplicationGraph.h | ||
virtual void TrackReplicationForAnalytics
(
bool bFastPathSaturated |
ReplicationGraph.h |