# DisconnectInput<U>(U, int)

> Disconnect the input port of a Playable.

## Definition

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

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

```csharp
public static void DisconnectInput<U>(this U playable, int inputPort) where U : struct, IPlayable
```

### Parameters

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

### Remarks

This method is a simple helper on top of [PlayableGraph.Disconnect](/engine/6000.7/script-reference/unityengine/playables/playablegraph/disconnect.md).

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