Yield

Static Class in Zigurous.Architecture

Declaration

public static class Yield

Description

Caches yield statements to minimize garbage collection.

Static Properties

initialCapacityThe initial capacity of the yield cache.
EndOfFrameWaits until the end of the frame, just before displaying the frame on screen.
FixedUpdateWaits until the next fixed frame rate update function.

Static Methods

WaitSuspends 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.
WaitRealtimeSuspends 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.
WaitUntilSuspends the coroutine execution until the supplied delegate evaluates to true.
WaitWhileSuspends the coroutine execution until the supplied delegate evaluates to false.