docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsNewer

    IsNewer(uint, uint)

    This method was originally added in February 2019, but does not seem to be used anywhere currently. Its original context seems to have been intended for a very simple version of checking whether a packet's sequence ID was equal to or newer than the last received packet.

    Declaration
    public static bool IsNewer(uint current, uint old)
    Parameters
    Type Name Description
    uint current

    The sequence ID of a newly-arrived packet to check

    uint old

    The sequence ID of a previously received packet

    Returns
    Type Description
    bool

    true if current is newer than old

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)