# SetWeight<U>(U, float)

> Sets the weight of the connection from the PlayableOutput to the source playable.

## Definition

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

## SetWeight\<T>(T, float)

```csharp
public static void SetWeight<U>(this U output, float value) where U : struct, IPlayableOutput
```

### Parameters

**** (T): The [PlayableOutput](/engine/6000.5/script-reference/unityengine/playables/playableoutput.md) used by this operation.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The new weight.

### Remarks

Implementation specific.
