Yield
Static Class in Zigurous.Architecture
Declaration
public static class Yield
Description
Caches yield statements to minimize garbage collection.
Static Properties
initialCapacity | The initial capacity of the yield cache. |
EndOfFrame | Waits until the end of the frame, just before displaying the frame on screen. |
FixedUpdate | Waits until the next fixed frame rate update function. |
Static Methods
Wait | Suspends the coroutine execution for the given amount of seconds using scaled 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. |
WaitRealtime | 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. |
WaitUntil | Suspends the coroutine execution until the supplied delegate evaluates to true. |
WaitWhile | Suspends the coroutine execution until the supplied delegate evaluates to false. |