Yield.WaitRealtime
Static Method in Yield
Declaration
public static WaitForSecondsRealtime WaitRealtime(float seconds)
Description
Suspends the coroutine execution for the given amount of seconds using unscaled time. The amount of seconds is cached as an integer in milliseconds to create more cache hits, but this results in a small precision loss in certain situations.
Parameters
seconds | The number of seconds to wait. |
Returns
WaitForSecondsRealtime | The yield statement. |