Struct PredictedGhostSpawn
Added to a PredictedGhostSpawnList singleton entity. Contains a transient list of ghosts that should be pre-spawned. Expects to be handled during the GhostSpawnClassificationSystem step. InternalBufferCapacity allocated to almost max out chunk memory. In practice, this capacity just needs to hold the maximum number of client-authored ghost entities per frame, which is typically in the range 0 - 1.
Implements
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
[InternalBufferCapacity(950)]
public struct PredictedGhostSpawn : IBufferElementData
Fields
| Name | Description |
|---|---|
| entity | The entitis that has been spawned |
| ghostType | The index inside the GhostCollectionPrefab that identify the type of ghost to be spawned. |
| spawnTick | The server tick the entity has been spawned. |