com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
Why does NetworkList<T> require T to be IEquatable<T>?
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.