Remove duplicates vector y from vector3 list

List myList = new List();
//Add some values to list
myList.Distinct();
this clears dublicates but how can i remove dublicate y values only?

add using System.Linq; to the top of the file. Then where you need to remove the duplicate ys,

 List<Vector3> distinctList = new List<Vector3>();
            foreach (Vector3 v3 in myList)
            {
                if (!distinctList.Any(v => v.y == v3.y))
                {
                    distinctList.Add(v3);
                }
            }
            myList = distinctList;