SetPoints(List<Vector2>)
Sets all the points that define a set of continuous edges.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public bool SetPoints(List<Vector2> points)
Parameters
A list of Vector2 used to set the points. This list must contain at least two points.
Returns
Type | Description |
|---|---|
| bool | Returns true if the list contains two or more points and the points are correctly set. Returns false otherwise. |
Remarks
If the provided list contains less than two points then 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.
pointsfalse