docs.unity3d.com
    Show / Hide Table of Contents

    Class DefaultGhostSpawnSystem<T>

    Inheritance
    System.Object
    DefaultGhostSpawnSystem<T>
    __GHOST_NAME__GhostSpawnSystem
    Namespace: Unity.NetCode
    Syntax
    [UpdateInGroup(typeof(GhostSpawnSystemGroup))]
    [AlwaysUpdateSystem]
    public abstract class DefaultGhostSpawnSystem<T> : JobComponentSystem where T : struct, ISnapshotData<T>
    Type Parameters
    Name Description
    T

    Fields

    m_PlayerGroup

    Declaration
    protected EntityQuery m_PlayerGroup
    Field Value
    Type Description
    EntityQuery

    Properties

    GhostType

    Declaration
    public int GhostType { get; set; }
    Property Value
    Type Description
    System.Int32

    NewGhostIds

    Declaration
    public NativeList<int> NewGhostIds { get; }
    Property Value
    Type Description
    Unity.Collections.NativeList<System.Int32>

    NewGhosts

    Declaration
    public NativeList<T> NewGhosts { get; }
    Property Value
    Type Description
    Unity.Collections.NativeList<T>

    Methods

    MarkPredictedGhosts(NativeArray<T>, NativeArray<Int32>, NativeList<DefaultGhostSpawnSystem<T>.PredictSpawnGhost>, JobHandle)

    Declaration
    protected virtual JobHandle MarkPredictedGhosts(NativeArray<T> snapshots, NativeArray<int> predictionMask, NativeList<DefaultGhostSpawnSystem<T>.PredictSpawnGhost> predictSpawnGhosts, JobHandle inputDeps)
    Parameters
    Type Name Description
    NativeArray<T> snapshots
    NativeArray<System.Int32> predictionMask
    Unity.Collections.NativeList<DefaultGhostSpawnSystem.PredictSpawnGhost<>> predictSpawnGhosts
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    OnCreate()

    Declaration
    protected override void OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()

    OnUpdate(JobHandle)

    Declaration
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    Parameters
    Type Name Description
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    SetPredictedGhostDefaults(NativeArray<T>, NativeArray<Int32>, JobHandle)

    Declaration
    protected virtual JobHandle SetPredictedGhostDefaults(NativeArray<T> snapshots, NativeArray<int> predictionMask, JobHandle inputDeps)
    Parameters
    Type Name Description
    NativeArray<T> snapshots
    NativeArray<System.Int32> predictionMask
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    UpdateNewInterpolatedEntities(NativeArray<Entity>, JobHandle)

    Declaration
    protected virtual JobHandle UpdateNewInterpolatedEntities(NativeArray<Entity> entities, JobHandle inputDeps)
    Parameters
    Type Name Description
    NativeArray<Entity> entities
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    UpdateNewPredictedEntities(NativeArray<Entity>, JobHandle)

    Declaration
    protected virtual JobHandle UpdateNewPredictedEntities(NativeArray<Entity> entities, JobHandle inputDeps)
    Parameters
    Type Name Description
    NativeArray<Entity> entities
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle
    Back to top
    Copyright © 2025 Unity Technologies
    • 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 02 April 2025