Yield.WaitWhile

Static Method in Yield

Declaration

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

Description

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

Parameters

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

Returns

WaitWhileThe yield statement.