docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator operator -

    operator -(NetworkTime, NetworkTime)

    Computes the time difference between two ticks

    Declaration
    public static NetworkTime operator -(NetworkTime a, NetworkTime b)
    Parameters
    Type Name Description
    NetworkTime a

    End time

    NetworkTime b

    Start time

    Returns
    Type Description
    NetworkTime

    The time difference between start and end

    operator -(NetworkTime, double)

    Computes the time a number of seconds before

    Declaration
    public static NetworkTime operator -(NetworkTime a, double b)
    Parameters
    Type Name Description
    NetworkTime a

    The start time

    double b

    The number of seconds to remove

    Returns
    Type Description
    NetworkTime

    The resulting time

    In This Article
    Back to top
    Copyright © 2024 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)