Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine
Replicated data for a geometry collection when bEnableReplication is true for that component. See UGeomtryCollectionComponent::UpdateRepData
| Name | FGeometryCollectionRepData |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionComponent.h |
| Include Path | #include "GeometryCollection/GeometryCollectionComponent.h" |
Syntax
USTRUCT ()
struct FGeometryCollectionRepData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGeometryCollectionRepData() |
GeometryCollection/GeometryCollectionComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsRootAnchored | bool | Is the root particle of the GC currently anchored. | GeometryCollection/GeometryCollectionComponent.h | |
| Clusters | TArray< FGeometryCollectionClusterRep > | Array of cluster data requires to synchronize clients. | GeometryCollection/GeometryCollectionComponent.h | |
| OneOffActivated | TArray< FGeometryCollectionActivatedCluster > | Array of one off pieces that became activated. | GeometryCollection/GeometryCollectionComponent.h | |
| RepDataReceivedTime | TOptional< float > | The sim-time that this rep data was received. | GeometryCollection/GeometryCollectionComponent.h | |
| ServerFrame | int32 | For Network Prediction Mode we require the frame number on the server when the data was gathered. | GeometryCollection/GeometryCollectionComponent.h | |
| Version | int32 | Version counter, every write to the rep data is a new state so Identical only references this version as there's no reason to compare the Poses array. | GeometryCollection/GeometryCollectionComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool HasChanged
(
const FGeometryCollectionRepData& BaseData |
Check if the data has changed. | GeometryCollection/GeometryCollectionComponent.h | |
bool Identical
(
const FGeometryCollectionRepData* Other, |
Just test version to skip having to traverse the whole pose array for replication. | GeometryCollection/GeometryCollectionComponent.h | |
bool NetSerialize
(
FArchive& Ar, |
GeometryCollection/GeometryCollectionComponent.h | ||
void Reset() |
GeometryCollection/GeometryCollectionComponent.h |