# GetSourceOutputPort<U>(U)

> Returns the source playable's output connection index.

## Definition

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

## GetSourceOutputPort\<T>(T)

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

### Parameters

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

### Returns

| Type                                                       | Description      |
| ---------------------------------------------------------- | ---------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The output port. |

### Remarks

Default value is 0.
