1

There are 1 best solutions below

0
JamesFaix On

It looks like you are running into an issue with constraints on generic type parameters in C#.

You are trying to create a Graph<Vector2>, but Graph<T> can only be used with generic types that implement the IComparable<T> interface. This is probably because the implementation of Graph uses < or > to compare the value of two nodes of the graph.