WaitUntil

csharp
public sealed class WaitUntil : CustomYieldInstruction

Namespace Flux.

Resumes the coroutine once the predicate is true (checked at once, then at each frame).

Constructors

WaitUntil

csharp
public WaitUntil(Func<bool> predicate)

Waits until predicate returns true.

Properties

keepWaiting

csharp
public override bool keepWaiting { get; }

True while predicate returns false.