Hi am assigning an array of lists
List<Vector3>[] paths = mp.vectorPaths; //where mp.vectorPaths is a List<Vector3> []
but I keep getting this error:
Cannot implicitly convert type UnityEngine.Vector3 to System.Collections.Generic.List<UnityEngine.Vector3>
What does this error mean
Your mp.vectorPaths is not a
List<Vector3>
even though you might think it is. To prove this post the declaration of mp.vectorPaths here as well or double check. mp.vectorPaths is a 2-dimensional Vector3 array as the error message clearly says.
To make
<>
working, mark it as code sample.
You can use this
public List<Vector3> vector3s = new List<Vector3>() { new Vector2(1, 0), new Vector3(2, 9), new Vector3(5, 7,10) };