# GetOutput<U>(U, int)

> Returns the Playable connected at the given output port index.

## Definition

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

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

```csharp
public static Playable GetOutput<U>(this U playable, int outputPort) where U : struct, IPlayable
```

### Parameters

**** (T): The [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) used by this operation.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The port index.

### Returns

| Type                                                                          | Description                                                                                                                                                                                                                                                                                                                                                                                      |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) | [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) connected at the output index specified, or null if the index is valid but is not connected to anything. This happens if there was once a Playable connected at the index, but was disconnected via [PlayableGraph.Disconnect](/engine/6000.5/script-reference/unityengine/playables/playablegraph/disconnect.md). |

### Remarks

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