Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine
Replicated state data for a geometry collection when bEnableReplication is true for that component. State data means what is broken and what is not See UGeomtryCollectionComponent::UpdateRepData
| Name | FGeometryCollectionRepStateData |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionComponent.h |
| Include Path | #include "GeometryCollection/GeometryCollectionComponent.h" |
Syntax
USTRUCT ()
struct FGeometryCollectionRepStateData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGeometryCollectionRepStateData() |
GeometryCollection/GeometryCollectionComponent.h |
Structs
| Name | Remarks |
|---|---|
| FReleasedData | This represents the data for when a particle is released from its parent cluster this data is added when the particle is released but will be cleared after a while so that late client will not replay the break as it is in their past |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsRootAnchored | uint8 | Is the root particle of the GC currently anchored could possibily change in the future to also be a bit array | GeometryCollection/GeometryCollectionComponent.h | |
| BrokenState | TBitArray | Broken state of each piece of the GC | GeometryCollection/GeometryCollectionComponent.h | |
| ReleasedData | TArray< FReleasedData > | GeometryCollection/GeometryCollectionComponent.h | ||
| Version | int32 | Version for fast comparison | GeometryCollection/GeometryCollectionComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool HasChanged
(
const FGeometryCollectionRepStateData& BaseData |
Check if the data has changed. | GeometryCollection/GeometryCollectionComponent.h | |
bool Identical
(
const FGeometryCollectionRepStateData* 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 | ||
bool SetBroken
(
int32 TransformIndex, |
Mark a transform as broken nd return true if this was a state change | GeometryCollection/GeometryCollectionComponent.h |