Delegate GhostPrefabCustomSerializer.ChunkSerializerDelegate
Delegate for the custom chunk serializer.
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public delegate void GhostPrefabCustomSerializer.ChunkSerializerDelegate(ref ArchetypeChunk chunk, in GhostCollectionPrefabSerializer typeData, in DynamicBuffer<GhostCollectionComponentIndex> componentIndices, ref GhostPrefabCustomSerializer.Context context, ref DataStreamWriter tempWriter, in StreamCompressionModel compressionModel, ref int lastSerializedEntity)
Parameters
Type | Name | Description |
---|---|---|
Archetype |
chunk | Chunk |
Ghost |
typeData | Type data |
Dynamic |
componentIndices | Component indices |
Ghost |
context | Context |
Data |
tempWriter | Datastream writer |
Stream |
compressionModel | Compression model |
int | lastSerializedEntity | Last serialized entity |