# GetInputWeight<U>(U, int)

> Returns the weight of the Playable connected at the given input port index.

## Definition

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

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

```csharp
public static float GetInputWeight<U>(this U playable, int inputIndex) 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                                                                                                        |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The current weight of the connected [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md). |

### Remarks

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