# SetSources(List<ConstraintSource>)

> Sets the list of sources on the component.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Animations](/engine/6000.5/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public void SetSources(List<ConstraintSource> sources)
```

### Parameters

**** (\[List\<ConstraintSource>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The list of sources to set.

### Remarks

Throws ArgumentNullException, if the list of sources is null.
