Network transport resets on "Play"

Hello,

I’m attempting to follow along the MLAPI Getting started and got everything to work with one exception.
Whenever I click play, it removes the saved setting for “Network Transport”. If I select “UNetTransport” as the transport, when I click play, it goes back to default (“None”). It works fine if I during play select “UNetTransport” again.

On play I get 3 warnings which may or may not be relevant.
“The referenced script (Unknown) on this Behaviour is missing!”
“The referenced script on this Behaviour (Game Object ‘NetworkManager’) is missing!”
“GameObject (named ‘NetworkManager’) references runtime script in scene file. Fixing!”

Another thing I noticed is that the “U Net Transport (Script)” that gets added as a component doesn’t have the usual C# script icon on it. The green “#” sign in the middle of the icon is missing.

If I made any mistakes in writing my question or if you need more information just let me know.
Thanks in advance!

There is a known issue for this. Updating the Unity version should fix it: NetworkManager Transport Serializefield Broken in 2020.1.4f1 · Issue #716 · Unity-Technologies/com.unity.netcode.gameobjects · GitHub

1 Like