Search Unity

How do i host a multiplayer server with a C# script?

Discussion in 'Scripting' started by Nanior, Jun 20, 2019.

  1. Nanior

    Nanior

    Joined:
    May 4, 2019
    Posts:
    101
    I have tried to make a multiplayer game, but the network manager HUD isn't good to leave it there, i have tried to use a button to "Lan Host", but i havn't found any way to host a server with a C# script.
    So please help me!:)
     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
    There are LAN Server and enable match maker for that.
     
  3. Code4Pro

    Code4Pro

    Joined:
    Oct 30, 2018
    Posts:
    4
  4. Nanior

    Nanior

    Joined:
    May 4, 2019
    Posts:
    101
  5. Nanior

    Nanior

    Joined:
    May 4, 2019
    Posts:
    101
    How do i enable it?
     
  6. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
  7. Nanior

    Nanior

    Joined:
    May 4, 2019
    Posts:
    101
    Whats a MatchInfo?
     
  8. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
  9. Nanior

    Nanior

    Joined:
    May 4, 2019
    Posts:
    101
  10. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
    Click the link. It is an example.
     
  11. Nanior

    Nanior

    Joined:
    May 4, 2019
    Posts:
    101
    Ok,thanks,i will try it.