Class ComponentSerializationHelper<TComponentType, TSnapshot, TSerializer>
Helper class used by code-gen to setup the serialisation function pointers.
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
[BurstCompile]
public static class ComponentSerializationHelper<TComponentType, TSnapshot, TSerializer> where TComponentType : unmanaged where TSnapshot : unmanaged where TSerializer : unmanaged, IGhostSerializer<TComponentType, TSnapshot>
Type Parameters
| Name | Description |
|---|---|
| TComponentType | The unmanaged buffer the helper serialise |
| TSnapshot | The snaphost data struct that contains the IBufferElementData data. |
| TSerializer | A concrete type that implement the IGhostSerializer<TComponent, TSnapshot> interface. |
Methods
| Name | Description |
|---|---|
| SetupFunctionPointers(ref State, ref SystemState) | Setup all the GhostComponentSerializer.State data and function pointers. |