Yield

Static Class in Zigurous.Utility

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.
WaitRealtimeSuspends the coroutine execution for the given amount of seconds using unscaled time.
WaitUntilSuspends the coroutine execution until the supplied delegate evaluates to true.
WaitWhileSuspends the coroutine execution until the supplied delegate evaluates to false.