# Until(Func<bool>)

> Item will be unscheduled automatically when specified condition is met.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
IVisualElementScheduledItem Until(Func<bool> stopCondition)
```

### Parameters

**** (\[Func\<bool>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): When condition returns true, the item will be unscheduled.

### Returns

| Type                                                                                                                 | Description         |
| -------------------------------------------------------------------------------------------------------------------- | ------------------- |
| [IVisualElementScheduledItem](/engine/6000.5/script-reference/unityengine/uielements/ivisualelementscheduleditem.md) | This ScheduledItem. |
