# SetDone<U>(U, bool)

> Changes 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

## SetDone\<T>(T, bool)

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

### Parameters

**** (T): The [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) used by this operation.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): True if the operation is completed, false otherwise.

### Remarks

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