Class GhostSpawnSystem
Inheritance
GhostSpawnSystem
Syntax
public class GhostSpawnSystem : SystemBase
Methods
ConvertGhostToInterpolated(Entity, Single)
Convert a predicted ghost to an interpolated ghost. The ghost must support both interpolated and predicted mode,
and it cannot be owner predicted. The new components added as a result of this operation will have the inital
values from the ghost prefab.
Declaration
public bool ConvertGhostToInterpolated(Entity entity, float transitionDuration = null)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Single |
transitionDuration |
|
Returns
ConvertGhostToPredicted(Entity, Single)
Convert an interpolated ghost to a predicted ghost. The ghost must support both interpolated and predicted mode,
and it cannot be owner predicted. The new components added as a result of this operation will have the inital
values from the ghost prefab.
Declaration
public bool ConvertGhostToPredicted(Entity entity, float transitionDuration = null)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Single |
transitionDuration |
|
Returns
OnCreate()
Declaration
protected override void OnCreate()
OnDestroy()
Declaration
protected override void OnDestroy()
OnUpdate()
Declaration
protected override void OnUpdate()