docs.unity3d.com
    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.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Netcode.TestHelpers.Runtime
    Syntax
    public class TimeoutFrameCountHelper : TimeoutHelper

    Constructors

    TimeoutFrameCountHelper(Single, UInt32)

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

    Methods

    GetFrameCount()

    Declaration
    public int GetFrameCount()
    Returns
    Type Description
    Int32

    OnHasTimedOut()

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

    OnStart()

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

    OnStop()

    Declaration
    protected override void OnStop()
    Overrides
    TimeoutHelper.OnStop()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 26 October 2023