Class GhostReceiveSystem<TGhostDeserializerCollection> | Unity NetCode | 0.2.0-preview.5
docs.unity.cn
    Show / Hide Table of Contents

    Class GhostReceiveSystem<TGhostDeserializerCollection>

    Inheritance
    Object
    GhostReceiveSystem<TGhostDeserializerCollection>
    Namespace: Unity.NetCode
    Syntax
    public class GhostReceiveSystem<TGhostDeserializerCollection> : JobComponentSystem where TGhostDeserializerCollection : struct, IGhostDeserializerCollection
    Type Parameters
    Name Description
    TGhostDeserializerCollection

    Methods

    InvokeDeserialize<T>(BufferFromEntity<T>, Entity, UInt32, UInt32, UInt32, UInt32, ref DataStreamReader, NetworkCompressionModel)

    Declaration
    public static bool InvokeDeserialize<T>(BufferFromEntity<T> snapshotFromEntity, Entity entity, uint snapshot, uint baseline, uint baseline2, uint baseline3, ref DataStreamReader reader, NetworkCompressionModel compressionModel)
        where T : struct, ISnapshotData<T>
    Parameters
    Type Name Description
    BufferFromEntity<T> snapshotFromEntity
    Entity entity
    UInt32 snapshot
    UInt32 baseline
    UInt32 baseline2
    UInt32 baseline3
    DataStreamReader reader
    NetworkCompressionModel compressionModel
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    InvokeSpawn<T>(UInt32, ref DataStreamReader, NetworkCompressionModel)

    Declaration
    public static T InvokeSpawn<T>(uint snapshot, ref DataStreamReader reader, NetworkCompressionModel compressionModel)
        where T : struct, ISnapshotData<T>
    Parameters
    Type Name Description
    UInt32 snapshot
    DataStreamReader reader
    NetworkCompressionModel compressionModel
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX