docs.unity3d.com
    Show / Hide Table of Contents

    Struct TimerState

    Contains timing information of scheduler events.

    Namespace: UnityEngine.UIElements
    Syntax
    public struct TimerState : IEquatable<TimerState>

    Properties

    deltaTime

    Time difference in milliseconds between now and the previous callback.

    Declaration
    public long deltaTime { get; }
    Property Value
    Type Description
    Int64

    now

    Current time in milliseconds.

    Declaration
    public long now { get; set; }
    Property Value
    Type Description
    Int64

    start

    Start time in milliseconds, or last callback time for repeatable .

    Declaration
    public long start { get; set; }
    Property Value
    Type Description
    Int64

    Methods

    Equals(Object)

    Compare this object with another object and return true if they are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare with.

    Returns
    Type Description
    Boolean

    True if the objects are equal.

    Equals(TimerState)

    Compare this object with another object and return true if they are equal.

    Declaration
    public bool Equals(TimerState other)
    Parameters
    Type Name Description
    TimerState other

    The object to compare with.

    Returns
    Type Description
    Boolean

    True if the objects are equal.

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Operators

    Equality(TimerState, TimerState)

    Declaration
    public static bool operator ==(TimerState state1, TimerState state2)
    Parameters
    Type Name Description
    TimerState state1
    TimerState state2
    Returns
    Type Description
    Boolean

    Inequality(TimerState, TimerState)

    Declaration
    public static bool operator !=(TimerState state1, TimerState state2)
    Parameters
    Type Name Description
    TimerState state1
    TimerState state2
    Returns
    Type Description
    Boolean
    In This Article
    • Properties
      • deltaTime
      • now
      • start
    • Methods
      • Equals(Object)
      • Equals(TimerState)
      • GetHashCode()
    • Operators
      • Equality(TimerState, TimerState)
      • Inequality(TimerState, TimerState)
    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