Function unscaledWait

  • Yields the current thread until the next frame. Returns the delta time waited. This uses unscaled time (Time.unscaledTime), so Time.timeScale will not effect duration.

    Returns number

  • Yields the current thread for delayTime seconds. Returns the delta time waited. This uses unscaled time (Time.unscaledTime), so Time.timeScale will not effect duration.

    Parameters

    • delayTime: number

    Returns number