Creating a Vector2 array and then assigning it works, as follows:
collider.points = newVector2Array;
However changing just one of those points doesn’t seem to work, for example:
collider.points = new Vector2(5, 10);
The code compiles fine and runs, but the edge collider points array remains unchanged.
Is there any way to do this, or do you have to replace the entire array each time?