Struct SnapshotData | Unity NetCode | 0.4.0-preview.1
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, Single, DynamicBuffer<SnapshotDataBuffer>, out SnapshotData.DataAtTick)

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

    GetLatestTick(DynamicBuffer<SnapshotDataBuffer>)

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

    WasLatestTickZeroChange(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
    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