docs.unity3d.com
    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
    System.UInt32

    Methods

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

    Declaration
    void Deserialize(uint tick, ref T baseline, DataStreamReader reader, ref DataStreamReader.Context ctx, NetworkCompressionModel compressionModel)
    Parameters
    Type Name Description
    System.UInt32 tick
    T baseline
    DataStreamReader reader
    Unity.Collections.DataStreamReader.Context ctx
    NetworkCompressionModel compressionModel

    Interpolate(ref T, Single)

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

    PredictDelta(UInt32, ref T, ref T)

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

    Serialize(Int32, ref T, DataStreamWriter, NetworkCompressionModel)

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