Class PhysicsDefaultVariantSystem
Optionally register the default variant to use for the Unity.Physics.PhysicsVelocity and the Unity.Physics.GraphicsIntegration.PhysicsGraphicalSmoothing.
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.Physics.dll
Syntax
[WorldSystemFilter(WorldSystemFilterFlags.BakingSystem|WorldSystemFilterFlags.ServerSimulation|WorldSystemFilterFlags.ClientSimulation|WorldSystemFilterFlags.ThinClientSimulation, WorldSystemFilterFlags.Default)]
[CreateAfter(typeof(GhostComponentSerializerCollectionSystemGroup))]
[UpdateInGroup(typeof(DefaultVariantSystemGroup), OrderLast = true)]
public sealed class PhysicsDefaultVariantSystem : SystemBase
Remarks
It will never override the default assignment for the `PhysicsVelocity` nor the `PhysicsGraphicalSmoothing` components if they are already present in the DefaultVariants map.
Any system deriving from DefaultVariantSystemBase will take precendence, even if they are created after this system.