Interface ISnapshotData<T> | Unity NetCode | 0.2.0-preview.5
docs.unity.cn
    Show / Hide Table of Contents

    Interface ISnapshotData<T>

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

    Properties

    Tick

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

    Methods

    Deserialize(UInt32, ref T, ref DataStreamReader, NetworkCompressionModel)

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

    Interpolate(ref T, Single)

    Declaration
    void Interpolate(ref T target, float factor)
    Parameters
    Type Name Description
    T target
    Single factor

    PredictDelta(UInt32, ref T, ref T)

    Declaration
    void PredictDelta(uint tick, ref T baseline1, ref T baseline2)
    Parameters
    Type Name Description
    UInt32 tick
    T baseline1
    T baseline2

    Serialize(Int32, ref T, ref DataStreamWriter, NetworkCompressionModel)

    Declaration
    void Serialize(int networkId, ref T baseline, ref DataStreamWriter writer, NetworkCompressionModel compressionModel)
    Parameters
    Type Name Description
    Int32 networkId
    T baseline
    DataStreamWriter writer
    NetworkCompressionModel compressionModel
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX