Search Unity

Resolved Network transport resets on "Play"

Discussion in 'Netcode for GameObjects' started by CptLancia, Jun 18, 2021.

  1. CptLancia


    Jan 21, 2020

    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!
  2. luke-unity


    Sep 30, 2020
    CptLancia likes this.