# SetSourcePlayable

> Sets which playable that computes the output.

## Definition

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

## SetSourcePlayable\<T, U>(T, T)

Sets which playable that computes the output.

```csharp
public static void SetSourcePlayable<U, V>(this U output, V value) where U : struct, IPlayableOutput where V : struct, IPlayable
```

### Parameters

**** (T): The [PlayableOutput](/engine/6000.0/script-reference/unityengine/playables/playableoutput.md) used by this operation.**** (T): The new source Playable.

## SetSourcePlayable\<T, U>(T, T, int)

Sets which playable that computes the output and which sub-tree index.

```csharp
public static void SetSourcePlayable<U, V>(this U output, V value, int port) where U : struct, IPlayableOutput where V : struct, IPlayable
```

### Parameters

**** (T): The [PlayableOutput](/engine/6000.0/script-reference/unityengine/playables/playableoutput.md) used by this operation.**** (T): The new source Playable.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The new output port value.
