Yield.WaitUntil

Static Method in Yield

Declaration

public static WaitUntil WaitUntil(Func<bool> predicate, int id)

Description

Suspends the coroutine execution until the supplied delegate evaluates to true.

Parameters

predicateThe delegate to evaluate.
idThe id to cache the yield statement with.

Returns

WaitUntilThe yield statement.