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

secondsThe number of seconds to wait.

Returns

WaitForSecondsRealtimeThe yield statement.