docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostPredictionSystemGroup

    Inheritance
    Object
    ComponentSystemBase
    ComponentSystem
    ComponentSystemGroup
    GhostPredictionSystemGroup
    Inherited Members
    ComponentSystemGroup.AddSystemToUpdateList(ComponentSystemBase)
    ComponentSystemGroup.AddUnmanagedSystemToUpdateList(SystemHandleUntyped)
    ComponentSystemGroup.RemoveSystemFromUpdateList(ComponentSystemBase)
    ComponentSystemGroup.SortSystems()
    ComponentSystemGroup.OnStopRunning()
    ComponentSystemGroup.UpdateSystem(WorldUnmanaged, SystemHandleUntyped)
    ComponentSystemGroup.EnableSystemSorting
    ComponentSystemGroup.Created
    ComponentSystemGroup.Systems
    Unity.Entities.ComponentSystemGroup.FixedRateManager
    ComponentSystemGroup.RateManager
    ComponentSystem.InitEntityQueryCache(Int32)
    ComponentSystem.Update()
    ComponentSystem.PostUpdateCommands
    ComponentSystem.Entities
    ComponentSystemBase.OnCreateForCompiler()
    ComponentSystemBase.OnStartRunning()
    ComponentSystemBase.ShouldRunSystem()
    ComponentSystemBase.GetComponentTypeHandle<T>(Boolean)
    ComponentSystemBase.GetDynamicComponentTypeHandle(ComponentType)
    ComponentSystemBase.GetBufferTypeHandle<T>(Boolean)
    ComponentSystemBase.GetSharedComponentTypeHandle<T>()
    ComponentSystemBase.GetDynamicSharedComponentTypeHandle(ComponentType)
    ComponentSystemBase.GetEntityTypeHandle()
    ComponentSystemBase.GetComponentDataFromEntity<T>(Boolean)
    ComponentSystemBase.GetBufferFromEntity<T>(Boolean)
    ComponentSystemBase.GetStorageInfoFromEntity()
    ComponentSystemBase.RequireForUpdate(EntityQuery)
    ComponentSystemBase.RequireSingletonForUpdate<T>()
    ComponentSystemBase.HasSingleton<T>()
    ComponentSystemBase.GetSingleton<T>()
    ComponentSystemBase.TryGetSingleton<T>(T)
    ComponentSystemBase.SetSingleton<T>(T)
    ComponentSystemBase.GetSingletonEntity<T>()
    ComponentSystemBase.TryGetSingletonEntity<T>(Entity)
    ComponentSystemBase.GetEntityQuery(ComponentType[])
    ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
    ComponentSystemBase.GetEntityQuery(EntityQueryDesc[])
    ComponentSystemBase.GetEntityQuery(EntityQueryDescBuilder)
    ComponentSystemBase.Enabled
    ComponentSystemBase.EntityQueries
    ComponentSystemBase.GlobalSystemVersion
    ComponentSystemBase.LastSystemVersion
    ComponentSystemBase.EntityManager
    ComponentSystemBase.World
    ComponentSystemBase.SystemHandleUntyped
    ComponentSystemBase.Time
    Namespace: Unity.NetCode
    Syntax
    [UpdateInGroup(typeof(GhostSimulationSystemGroup))]
    public class GhostPredictionSystemGroup : ComponentSystemGroup

    Fields

    IsFinalPredictionTick

    The current server tick which will be the last tick to predict. Only valid when the GhostPredictionSystemGroup is executing, otherwise will be true.

    Declaration
    public bool IsFinalPredictionTick
    Field Value
    Type Description
    Boolean

    OldestPredictedTick

    Declaration
    public NativeArray<uint> OldestPredictedTick
    Field Value
    Type Description
    NativeArray<UInt32>

    PredictingTick

    The tick currently being predicted. Only valid when the GhostPredictionSystemGroup is executing (see IsInPredictionLoop), otherwise the value will be the last predicted tick.

    Declaration
    public uint PredictingTick
    Field Value
    Type Description
    UInt32

    Properties

    IsInPredictionLoop

    True only while this prediction group is executing its OnUpdate.

    Declaration
    public bool IsInPredictionLoop { get; }
    Property Value
    Type Description
    Boolean

    Methods

    AddPredictedTickWriter(JobHandle)

    Declaration
    public void AddPredictedTickWriter(JobHandle handle)
    Parameters
    Type Name Description
    JobHandle handle

    OnCreate()

    Declaration
    protected override void OnCreate()
    Overrides
    ComponentSystemGroup.OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()
    Overrides
    ComponentSystemGroup.OnDestroy()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    Overrides
    ComponentSystemGroup.OnUpdate()

    ShouldPredict(UInt32, PredictedGhostComponent)

    Declaration
    public static bool ShouldPredict(uint tick, PredictedGhostComponent predicted)
    Parameters
    Type Name Description
    UInt32 tick
    PredictedGhostComponent predicted
    Returns
    Type Description
    Boolean
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023