# SetPoints(List<Vector2>)

> Sets all the points that define a set of continuous edges.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public bool SetPoints(List<Vector2> points)
```

### Parameters

**** (\[List\<Vector2>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): A list of [Vector2](/engine/6000.6/script-reference/unityengine/vector2.md) used to set the points. This list must contain at least two points.

### Returns

| Type                                                          | Description                                                                                                     |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the list contains two or more points and the points are correctly set. Returns false otherwise. |

### Remarks

If the provided `points` list contains less than two points then `false` is returned indicating the points were not set. Any points that are not valid such as them being NaN or Infinite are set to [Vector2.zero](/engine/6000.6/script-reference/unityengine/vector2/zero.md).
