Navigation
API > API/Plugins > API/Plugins/PCG
| Name | FPackedDataCommonParams |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/InstanceDataPackers/PCGInstanceDataPackerBase.h |
| Include Path | #include "InstanceDataPackers/PCGInstanceDataPackerBase.h" |
Syntax
struct FPackedDataCommonParams
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NumInstances | int32 | Number of different entries in the OutPackedCustomData. | InstanceDataPackers/PCGInstanceDataPackerBase.h | |
| OptionalContext | FPCGContext * | Optional context for logging. | InstanceDataPackers/PCGInstanceDataPackerBase.h | |
| OptionalOffsets | TConstArrayView< int32 > | If the packing is sparse, offsets can be provided. | InstanceDataPackers/PCGInstanceDataPackerBase.h | |
| OutPackedCustomData | FPCGPackedCustomData * | Out structure containing the packed data. | InstanceDataPackers/PCGInstanceDataPackerBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ValidateNumOfFloats
(
int32 NumOfCustomFloats |
For validation that the computed number of custom floats is less or equal than the expected value set in OutPackedCustomData. | InstanceDataPackers/PCGInstanceDataPackerBase.h | |
bool ValidateOffsets
(
int32 OffsetIndex, |
For validation that the offset at OffsetIndex is not overlapping with NumOfCustomFloats. | InstanceDataPackers/PCGInstanceDataPackerBase.h | |
void ZeroOutCustomData() |
If there is any kind of error, zero out the buffer in OutPackedCustomData. | InstanceDataPackers/PCGInstanceDataPackerBase.h |