Cannot implicitly convert type `System.Collections.Generic.List' to `UnityEngine.Vector3[]'

Hey!

so i got this

public List<Vector3> paths;

and want to fill its content into a

public Vector3[]    points;

like this:

gameObject.GetComponentInChildren<DrawSpline>().points = paths;

but that leads to this error:

error CS0029: Cannot implicitly convert type `System.Collections.Generic.List<UnityEngine.Vector3>' to `UnityEngine.Vector3[]'

i assume i can not just copy over from a over to a array(?)
but what but be the right way to do that?

You aren’t specifying which element of the array you are assigning, maybe use a for loop for this if you want to completely copy over

e.g

for(int i = 0, i < paths.count; i++)
		{
			gameObject.GetComponentInChildren<DrawSpline>().points _= paths*;*_

* }*