Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
Miscellaneous fixes to make NGO and its test project compatible with UTP 2.X:
Two instances of an implicit conversion from NativeList to NativeArray. That's deprecated in Collections 2.X and we now have to use the explicit AsArray method.
Two sets of tests were using the debug simulator of UnityTransport, but that's not available anymore with UTP 2.X, where using the simulator in the tools package is now preferred. I'm not sure exactly how to write these tests to be compatible with both versions of UTP, so for now I opted to disable them if UTP 2.X is installed. Not ideal, but at least it allows compilation of the test project when using UTP 2.X.
Not related to UTP 2.X at all, but there was a missing .meta file, so I'm adding that at the same time.
Changelog
N/A
Testing and Documentation
No tests have been added, quite the contrary in fact.
No documentation changes or additions were necessary.
Miscellaneous fixes to make NGO and its test project compatible with UTP 2.X:
NativeList
toNativeArray
. That's deprecated in Collections 2.X and we now have to use the explicitAsArray
method.UnityTransport
, but that's not available anymore with UTP 2.X, where using the simulator in the tools package is now preferred. I'm not sure exactly how to write these tests to be compatible with both versions of UTP, so for now I opted to disable them if UTP 2.X is installed. Not ideal, but at least it allows compilation of the test project when using UTP 2.X.Changelog
N/A
Testing and Documentation