Navigation
API > API/Plugins > API/Plugins/ReplicationGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UReplicationGraphNode
- UReplicationGraphNode_ActorList
- UReplicationGraphNode_AlwaysRelevant_ForConnection
- UReplicationGraphNode_ConnectionDormancyNode
- UReplicationGraphNode_DormancyNode
- UReplicationGraphNode_DynamicSpatialFrequency
- UReplicationGraphNode_GridCell
- UReplicationGraphNode_ActorListFrequencyBuckets
- UReplicationGraphNode_AlwaysRelevant
- UReplicationGraphNode_GridSpatialization2D
- UReplicationGraphNode_TearOff_ForConnection
References
| Module | ReplicationGraph |
| Header | /Engine/Plugins/Runtime/ReplicationGraph/Source/Public/ReplicationGraph.h |
| Include | #include "ReplicationGraph.h" |
Syntax
UCLASS&40;Abstract, Transient, Config&61;Engine&41;
class UReplicationGraphNode : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TObjectPtr< UReplicationGraphNode > > | AllChildNodes | ||
| bool | bRequiresPrepareForReplicationCall | Determines if PrepareForReplication() is called. | |
| TSharedPtr< FReplicationGraphGlobalData > | GraphGlobals |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CleanChildNodes
(
UReplicationGraphNode::NodeOrdering NodeOrder |
Remove all null and about to be destroyed nodes from our list | |
| T * | Allocates and initializes ChildNode of a specific type T. | ||
| T * | CreateChildNode
(
FName NodeBaseName |
Allocates and initializes ChildNode of a specific type T with a given base name. | |
| void | DoCollectActorRepListStats
(
FActorRepListStatCollector& StatsCollector |
||
| void | GatherActorListsForConnection
(
const FConnectionGatherActorListParameters& Params |
||
| void | GetAllActorsInNode_Debugging
(
TArray< FActorRepListType >& OutArray |
Debugging only function to return a normal TArray of actor rep list (for logging, debug UIs, etc) | |
| FString | |||
| bool | |||
| UWorld * | GetWorld () |
||
| void | Initialize
(
const TSharedPtr< FReplicationGraphGlobalData >& InGraphGlobals |
||
| void | LogNode
(
FReplicationGraphDebugInfo& DebugInfo, |
||
| void | NotifyAddNetworkActor
(
const FNewReplicatedActorInfo& Actor |
Called when a network actor is spawned or an actor changes replication status | |
| bool | NotifyRemoveNetworkActor
(
const FNewReplicatedActorInfo& Actor, |
Called when a networked actor is being destroyed or no longer wants to replicate | |
| void | Called when world changes or when all subclasses should dump any persistent data/lists about replicated actors here. | ||
| void | OnCollectActorRepListStats
(
FActorRepListStatCollector& StatsCollector |
Implement this to visit any FActorRepListRefView and FStreamingLevelActorListCollection your node implemented. | |
| void | Called once per frame prior to replication ONLY on root nodes (nodes created via UReplicationGraph::CreateNode) has RequiresPrepareForReplicationCall=true | ||
| bool | RemoveChildNode
(
UReplicationGraphNode* OutChildNode, |
Remove a child node from our list and flag it for destruction. Returns if the node was found or not | |
| void | TearDown () |
Mark the node and all its children PendingKill | |
| bool | VerifyActorReference
(
const FActorRepListType& Actor |
||
| void | Debugging only function to verify referenced actors (if any) are still valid. | ||
| void | Verify the validity of any potentially stale actor pointers. Used for debugging. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Handles reading, writing, and reference collecting using FArchive. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| NodeOrdering | Node removal behavior |