Namespace Unity.NetCode.LowLevel.Unsafe
Classes
CustomGhostSerializerHelpers
Contains helper methods to write custom chunk serializers.
See Ghost
GhostCustomSerializerExtensions
Extension methods for all unmanaged types implementing the
IGhost
Structs
GhostComponentSerializer
Mostly for internal use. A collection helper functions used by code-gen and some runtime systems.
See Ghost
GhostComponentSerializer.State
This buffer is added to the GhostCollection singleton entity. Stores serialization meta-data for the ghost. Too large to be stored in chunk memory. Values are generated by the Source Generators.
NetDebugPacket
Enums
GhostComponentSerializer.SendMask
A bitflag used to mark to which ghost type a component should be serialized to.
Delegates
GhostComponentSerializer.CopyToFromSnapshotDelegate
Delegate method used to transfer the component data to/from the snapshot buffer.
GhostComponentSerializer.DeserializeDelegate
Deserialize the component and buffer data from the received snapshot and store it inside the Snapshot
GhostComponentSerializer.PostSerializeBufferDelegate
Delegate method to use to post-serialize buffers when the ghost use pre-serialization optimization.
GhostComponentSerializer.PostSerializeDelegate
Delegate method to use to post-serialize the component when the ghost use pre-serialization optimization.
GhostComponentSerializer.PredictDeltaDelegate
Calculate the prediction delta for components and buffer. Used for delta-compression.
GhostComponentSerializer.ReportPredictionErrorsDelegate
Delegate used by the Ghost
GhostComponentSerializer.RestoreFromBackupDelegate
Delegate method used to restore the state of a replicated component from the Ghost
GhostComponentSerializer.SerializeBufferDelegate
Delegate method used to serialize the buffer content for the whole chunk. Works in batches.
GhostComponentSerializer.SerializeChildDelegate
Delegate method used to serialize the component data present in the child entity into the outgoing data stream. Works on a single entity at time.
GhostComponentSerializer.SerializeDelegate
Delegate method used to serialize the component data for the root entity into the outgoing data stream. Works in batches.