# IsDone<U>(U)

> Returns a flag indicating that a playable has completed its operation.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Playables](/engine/6000.5/script-reference/unityengine/playables.md)
* **Assembly:** UnityEngine.CoreModule

## IsDone\<T>(T)

```csharp
public static bool IsDone<U>(this U playable) where U : struct, IPlayable
```

### Parameters

**** (T): The [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) used by this operation.

### Returns

| Type                                                          | Description                                                        |
| ------------------------------------------------------------- | ------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the playable has completed its operation, false otherwise. |

### Remarks

If the duration of the playable is set, when the time of the playable reaches its duration during playback this flag will be set to true.

Use this templated extension method on any type that inherits from [IPlayable](/engine/6000.5/script-reference/unityengine/playables/iplayable.md).
