# SetSourceOutputPort<U>(U, int)

> Sets the source playable's output connection index. For playables with multiple outputs, this determines which sub-branch of the source playable generates this output.

## Definition

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

## SetSourceOutputPort\<T>(T, int)

> **Warning:**
>
> **Deprecated.** Method SetSourceOutputPort has been deprecated. Use SetSourcePlayable(Playable, Port) instead.

```csharp
public static void SetSourceOutputPort<U>(this U output, int value) where U : struct, IPlayableOutput
```

### Parameters

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