Method SizeInSnapshot
SizeInSnapshot(in State)
Helper that returns the size in bytes (aligned to 16 bytes boundary) used to store the component data inside SnapshotData.
Declaration
public static int SizeInSnapshot(in GhostComponentSerializer.State serializer)
Parameters
Type | Name | Description |
---|---|---|
GhostComponentSerializer.State | serializer |
Returns
Type | Description |
---|---|
int |
Remarks
For buffers in particular, the SnapshotData contains only offset and length information (the buffer data resides inside the SnapshotDynamicDataBuffer), and the reported size is always equal to the DynamicBufferComponentSnapshotSize.