Interface ICommandData<T> | Unity NetCode | 0.2.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Interface ICommandData<T>

    Namespace: Unity.NetCode
    Syntax
    public interface ICommandData<T> : IBufferElementData where T : struct, ICommandData<T>
    Type Parameters
    Name Description
    T

    Properties

    Tick

    Declaration
    uint Tick { get; }
    Property Value
    Type Description
    UInt32

    Methods

    Deserialize(UInt32, ref DataStreamReader)

    Declaration
    void Deserialize(uint tick, ref DataStreamReader reader)
    Parameters
    Type Name Description
    UInt32 tick
    DataStreamReader reader

    Deserialize(UInt32, ref DataStreamReader, T, NetworkCompressionModel)

    Declaration
    void Deserialize(uint tick, ref DataStreamReader reader, T baseline, NetworkCompressionModel compressionModel)
    Parameters
    Type Name Description
    UInt32 tick
    DataStreamReader reader
    T baseline
    NetworkCompressionModel compressionModel

    Serialize(ref DataStreamWriter)

    Declaration
    void Serialize(ref DataStreamWriter writer)
    Parameters
    Type Name Description
    DataStreamWriter writer

    Serialize(ref DataStreamWriter, T, NetworkCompressionModel)

    Declaration
    void Serialize(ref DataStreamWriter writer, T baseline, NetworkCompressionModel compressionModel)
    Parameters
    Type Name Description
    DataStreamWriter writer
    T baseline
    NetworkCompressionModel compressionModel
    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