Struct PredictionSwitchingSmoothing
Optional component that can be added either on a per entity or on per-chunk basis that allow to customise the transition time when converting from predicted to interpolated GhostMode. If the component is present, the TransitionDurationSeconds take precendence over the settings passed to the TransitionDurationSeconds.
Implements
IComponentData
IQueryTypeParameter
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public struct PredictionSwitchingSmoothing : IComponentData, IQueryTypeParameter
Fields
TransitionDurationSeconds
We smooth the Unity.Transforms.LocalToWorld of the target entity via GhostPredictionSmoothing system (and component SwitchPredictionSmoothing). How gentle should this smooth transformation be? Sensible default: 1.0s. Note: Also prevents converting the ghost again until complete.
Declaration
public float TransitionDurationSeconds
Field Value
Type | Description |
---|---|
float |
Implements
Unity.Entities.IComponentData
Unity.Entities.IQueryTypeParameter