Struct PredictedGhostSpawnRequest
Optional component, used to request predictive spawn of a ghosts by the client. The component is automatically added to the authored ghost prefabs when:
- The baking target is Client or Client
And .Server - When using the hybrid authoring workflow, if the GhostAuthoringComponent.SuypportedGhostModes is Predicted or All.
- When using the Convert
To , if the SupportedGhost Prefab(Entity Manager, Entity, Config, Native Parallel Hash Map<Component, Component Override>) Ghost is set to Predicted or All. The predicted spawn request is consumed by PredictedModes Ghost , which will remove the component from the instantiated entity after an initial setup.Spawn System
The package provides a default handling for predictive spawning (DefaultGhost ). In case you need a custom or more accurate way to match the predicted spawned entities with the authoritive server spawned ones, you can implement a custom spawn classification system. See GhostSpawn Classification System Spawn for further details.Classification System
Implements
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public struct PredictedGhostSpawnRequest : IComponentData, IQueryTypeParameter