Navigation
API > API/Plugins > API/Plugins/ReplicationGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UReplicationGraphNode
- UReplicationGraphNode_GridSpatialization2D
References
| Module | ReplicationGraph |
| Header | /Engine/Plugins/Runtime/ReplicationGraph/Source/Public/ReplicationGraph.h |
| Include | #include "ReplicationGraph.h" |
Syntax
UCLASS&40;&41;
class UReplicationGraphNode_GridSpatialization2D : public UReplicationGraphNode
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDestroyDormantDynamicActors | When enabled the RepGraph tells clients to destroy dormant dynamic actors when they go out of relevancy. | |
| float | CellSize | ||
| double | ConnectionMaxZ | ||
| TFunction< UReplicationGraphNode_GridCell *(UReplicationGraphNode_GridSpatialization2D *Pare... | CreateCellNodeOverride | Allow graph to override function for creating cell nodes in this grid. | |
| TArray< FString > | DebugActorNames | ||
| int32 | DestroyDormantDynamicActorsCellTTL | How many frames dormant actors should be outside relevancy range to be destroyed. | |
| int32 | ReplicatedDormantDestructionInfosPerFrame | Optimization to spread cost over multiple frames. | |
| FVector2D | SpatialBias |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddActor_Dormancy
(
const FNewReplicatedActorInfo& ActorInfo, |
||
| void | AddActor_Dynamic
(
const FNewReplicatedActorInfo& ActorInfo, |
||
| void | AddActor_Static
(
const FNewReplicatedActorInfo& ActorInfo, |
||
| void | AddActorInternal_Dynamic
(
const FNewReplicatedActorInfo& ActorInfo |
For adding new actor to the graph | |
| void | AddActorInternal_Static
(
const FNewReplicatedActorInfo& ActorInfo, |
||
| void | AddActorInternal_Static_Implementation
(
const FNewReplicatedActorInfo& ActorInfo, |
||
| void | AddToClassRebuildDenyList
(
UClass* Class |
Marks a class as preventing spatial rebuilds when an instance leaves the grid. | |
| void | ForceRebuild () |
||
| void | NotifyActorCullDistChange
(
AActor* Actor, |
Called if cull distance changes. Note the caller must update Global/Connection actor rep infos. This just changes cached state within this node. | |
| void | RemoveActor_Dormancy
(
const FNewReplicatedActorInfo& ActorInfo |
||
| void | RemoveActor_Dynamic
(
const FNewReplicatedActorInfo& ActorInfo |
||
| void | RemoveActor_Static
(
const FNewReplicatedActorInfo& ActorInfo |
||
| void | RemoveActorInternal_Dynamic
(
const FNewReplicatedActorInfo& Actor |
||
| void | RemoveActorInternal_Static
(
const FNewReplicatedActorInfo& Actor, |
||
| void | SetBiasAndGridBounds
(
const FBox& GridBox |
When the GridBounds is set we limit the creation of cells to be exclusively inside the passed region. |
Overridden from UReplicationGraphNode
| Type | Name | Description | |
|---|---|---|---|
| void | GatherActorListsForConnection
(
const FConnectionGatherActorListParameters& Params |
||
| 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 | Called once per frame prior to replication ONLY on root nodes (nodes created via UReplicationGraph::CreateNode) has RequiresPrepareForReplicationCall=true | ||
| void | Verify the validity of any potentially stale actor pointers. Used for debugging. |