This following code doesn’t work the way that it should:
void Start()
{
List<Vector2> myList = new List<Vector2>
{
Vector2.up * 10f,
Vector2.up * 10f
};
myList.Distinct().ToList();
foreach (var item in myList)
{
print(item);
}
}
When I do a print out, it still says that there are two Vector2’s inside MyList that have the same value as each other. Wasn’t myList.Distinct().ToList() suppose to remove duplicates?
Okk my bad
– Nistroy