Class EndPredictedSimulationEntityCommandBufferSystem
The EntityCommandBufferSystem at the end of the PredictedSimulationSystemGroup.
Inheritance
EndPredictedSimulationEntityCommandBufferSystem
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
[WorldSystemFilter(WorldSystemFilterFlags.Default|WorldSystemFilterFlags.ThinClientSimulation, WorldSystemFilterFlags.Default)]
[UpdateInGroup(typeof(PredictedSimulationSystemGroup), OrderLast = true)]
public class EndPredictedSimulationEntityCommandBufferSystem : EntityCommandBufferSystem
Remarks
Prefer using this system to queue spawning operations that involved predicted ghosts, especially on the Client (predicted spawning). This guarantee that they are initialized with the correct state at the tick they are spawned (no partial tick) if the usual rules for spawning (NetworkTime.IsFirstTimePredictedTick true) are followed.