Class GhostReceiveSystem<TGhostDeserializerCollection> | Unity NetCode | 0.2.0-preview.5
docs.unity3d.com
    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 © 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