Class SnapshotDataUtility | Unity NetCode | 0.2.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Class SnapshotDataUtility

    Inheritance
    Object
    SnapshotDataUtility
    Namespace: Unity.NetCode
    Syntax
    public static class SnapshotDataUtility

    Methods

    GetDataAtTick<T>(DynamicBuffer<T>, UInt32, out T)

    Declaration
    public static bool GetDataAtTick<T>(this DynamicBuffer<T> snapshotArray, uint targetTick, out T snapshotData)
        where T : struct, ISnapshotData<T>
    Parameters
    Type Name Description
    DynamicBuffer<T> snapshotArray
    UInt32 targetTick
    T snapshotData
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    GetDataAtTick<T>(DynamicBuffer<T>, UInt32, Single, out T)

    Declaration
    public static bool GetDataAtTick<T>(this DynamicBuffer<T> snapshotArray, uint targetTick, float targetTickFraction, out T snapshotData)
        where T : struct, ISnapshotData<T>
    Parameters
    Type Name Description
    DynamicBuffer<T> snapshotArray
    UInt32 targetTick
    Single targetTickFraction
    T snapshotData
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    GetLatestTick<T>(DynamicBuffer<T>)

    Declaration
    public static uint GetLatestTick<T>(this DynamicBuffer<T> snapshotArray)
        where T : struct, ISnapshotData<T>
    Parameters
    Type Name Description
    DynamicBuffer<T> snapshotArray
    Returns
    Type Description
    UInt32
    Type Parameters
    Name Description
    T
    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