# SetInputWeight

> Changes the weight of the Playable connected to the current Playable.

## Definition

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

## SetInputWeight\<T>(T, int, float)

Changes the weight of the [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) connected to the current [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md).

```csharp
public static void SetInputWeight<U>(this U playable, int inputIndex, float weight) 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)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The weight. Should be between 0 and 1.

### Remarks

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

## SetInputWeight\<T, U>(T, T, float)

Changes the weight of the [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) connected to the current [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md).

```csharp
public static void SetInputWeight<U, V>(this U playable, V input, float weight) where U : struct, IPlayable where V : struct, IPlayable
```

### Parameters

**** (T): The [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) used by this operation.**** (T): The connected [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) to change.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The weight. Should be between 0 and 1.

### Remarks

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