docs.unity3d.com
    Show / Hide Table of Contents

    Struct SnapshotData

    Namespace: Unity.NetCode
    Syntax
    public struct SnapshotData : IComponentData

    Fields

    LatestIndex

    Declaration
    public int LatestIndex
    Field Value
    Type Description
    Int32

    SnapshotSize

    Declaration
    public int SnapshotSize
    Field Value
    Type Description
    Int32

    Methods

    GetDataAtTick(UInt32, Int32, Single, in DynamicBuffer<SnapshotDataBuffer>, out SnapshotData.DataAtTick, UInt32)

    Declaration
    public bool GetDataAtTick(uint targetTick, int predictionOwnerOffset, float targetTickFraction, in DynamicBuffer<SnapshotDataBuffer> buffer, out SnapshotData.DataAtTick data, uint MaxExtrapolationTicks)
    Parameters
    Type Name Description
    UInt32 targetTick
    Int32 predictionOwnerOffset
    Single targetTickFraction
    DynamicBuffer<SnapshotDataBuffer> buffer
    SnapshotData.DataAtTick data
    UInt32 MaxExtrapolationTicks
    Returns
    Type Description
    Boolean

    GetLatestTick(in DynamicBuffer<SnapshotDataBuffer>)

    Declaration
    public uint GetLatestTick(in DynamicBuffer<SnapshotDataBuffer> buffer)
    Parameters
    Type Name Description
    DynamicBuffer<SnapshotDataBuffer> buffer
    Returns
    Type Description
    UInt32

    GetOldestTick(in DynamicBuffer<SnapshotDataBuffer>)

    Declaration
    public uint GetOldestTick(in DynamicBuffer<SnapshotDataBuffer> buffer)
    Parameters
    Type Name Description
    DynamicBuffer<SnapshotDataBuffer> buffer
    Returns
    Type Description
    UInt32

    WasLatestTickZeroChange(in DynamicBuffer<SnapshotDataBuffer>, Int32)

    Declaration
    public bool WasLatestTickZeroChange(in DynamicBuffer<SnapshotDataBuffer> buffer, int numChangeUints)
    Parameters
    Type Name Description
    DynamicBuffer<SnapshotDataBuffer> buffer
    Int32 numChangeUints
    Returns
    Type Description
    Boolean
    Back to top
    Terms of use
    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