How do i fix Error CS0029?

Hello i am Getting this Error CS0029 with spherePoints = new Vector3[(sphereAmount + 1)];,

I after i changedprivate Vector3[] spherePoints to private Transform[] spherePoints,
does anyone know how to fix this?


Well, what do you want. An Array of Vector3 or Transform? It’s either private Vector3[] spherePoints=new Vector3[sphereAmount + 1]; or private Transform[] spherePoints=new Transform[sphereAmount + 1]

Casting from Vector3 to Transform or vice-versa makes no sense and is not possible.