Class GhostSpawnSystem
Inheritance
GhostSpawnSystem
Inherited Members
Unity.Entities.SystemBase.UnmanagedUpdate$BurstManaged(System.IntPtr, Unity.Entities.SystemDependencySafetyUtility.SafetyErrorDetails)
Syntax
[UpdateInGroup(typeof(GhostSpawnSystemGroup))]
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 = 0F)
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 = 0F)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Single |
transitionDuration |
|
Returns
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
OnUpdate()
Declaration
protected override void OnUpdate()
Overrides