Search Unity

Where can I find the source code to NetworkManager, NetworkServer, NetworkLobbyManager, etc

Discussion in 'Multiplayer' started by Slight0, Aug 9, 2015.

  1. Slight0

    Slight0

    Joined:
    Dec 6, 2013
    Posts:
    28
    So I thought that simply double clicking on the "script" in the editor would be enough, but it seems that it is linked to UnityEngine.Networking.dll instead of an actual .cs file.

    Are we stuck wondering whats inside the blackbox or is there a place to view the source code to these high level classes. They would be both huge learning tools and good starting points in general in the common case that modifications need to be made to the way networking works.
     
  2. SuperNeon

    SuperNeon

    Joined:
    Mar 16, 2014
    Posts:
    85
    You can use ILSpy to see the code :)
     
  3. Slight0

    Slight0

    Joined:
    Dec 6, 2013
    Posts:
    28
    Yeah I'm using Reflector 8 at the moment, code is pretty readable although you lose local variable names.

    Still would require a fair bit of work to go through and fix small issues like that should I want to integrate it into the engine.

    It's a shame because the default network components work pretty well.
     
    Last edited: Aug 10, 2015
  4. zihadmahiuddin

    zihadmahiuddin

    Joined:
    Nov 13, 2017
    Posts:
    1
    You can use dnSpy too.
    Pretty good.
    :)
     
  5. KyleOlsen

    KyleOlsen

    Joined:
    Apr 3, 2012
    Posts:
    237