docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TimeoutFrameCountHelper

    This can be used in place of TimeoutHelper if you suspect a test is having issues on a system where the frame rate is running slow than expected and allowing a certain number of frame updates is required.

    Inheritance
    object
    TimeoutHelper
    TimeoutFrameCountHelper
    Inherited Members
    TimeoutHelper.k_DefaultTimeOutWaitPeriod
    TimeoutHelper.m_IsStarted
    TimeoutHelper.TimedOut
    TimeoutHelper.GetTimeElapsed()
    TimeoutHelper.Start()
    TimeoutHelper.Stop()
    TimeoutHelper.HasTimedOut()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Netcode.TestHelpers.Runtime
    Assembly: Unity.Netcode.TestHelpers.Runtime.dll
    Syntax
    public class TimeoutFrameCountHelper : TimeoutHelper

    Constructors

    TimeoutFrameCountHelper(float, uint)

    Declaration
    public TimeoutFrameCountHelper(float timeOutPeriod = 2, uint tickRate = 30)
    Parameters
    Type Name Description
    float timeOutPeriod
    uint tickRate

    Methods

    GetFrameCount()

    Declaration
    public int GetFrameCount()
    Returns
    Type Description
    int

    OnHasTimedOut()

    Declaration
    protected override bool OnHasTimedOut()
    Returns
    Type Description
    bool
    Overrides
    TimeoutHelper.OnHasTimedOut()

    OnStart()

    Declaration
    protected override void OnStart()
    Overrides
    TimeoutHelper.OnStart()

    OnStop()

    Declaration
    protected override void OnStop()
    Overrides
    TimeoutHelper.OnStop()
    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)