com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

Why does NetworkList<T> require T to be IEquatable<T>?

Open toronyx opened this issue 2 years ago • 0 comments

NetworkList<T> has the generic constraints T : unmanaged, IEquatable<T>.

When looking through NetworkList.cs, it does not seem that the IEquatable<T> constraint is actually used anywhere. Is there a reason for this constraint that I'm missing? I ask because it means you currently cannot make a network list of enums.

toronyx avatar Oct 09 '23 14:10 toronyx