Making a Multiplayer FPS in Unity (E18. Hosting) - uNet Tutorial

Under the Sea Hosting – Making a Multiplayer FPS in Unity (E18. Hosting) – uNet Tutorial


Making a Multiplayer FPS in Unity (E18. Hosting) – uNet Tutorial

Under the Sea Hosting

In this video we make our own GUI for hosting rooms that other players can join. ♥ Support my videos on Patreon: ○ Download …

you search:

Under the Sea Hosting

Making a Multiplayer FPS in Unity (E18. Hosting) – uNet Tutorial

42 thoughts on “Under the Sea Hosting – Making a Multiplayer FPS in Unity (E18. Hosting) – uNet Tutorial

  1. Hi,
    I am trying to follow this series in 2020 using Mirror to replace the deprecated UNet. I can't complete this episode, as Mirror does not have a NetworkManager.matchMaker function. The only solution I've been able to find online is "Start from scratch using another tutorial." Is there any way to continue this series? If I can't implement matchmaking, can I do other parts of the series? Will the game be usable without matchmaking functions? (e.g. port-forwarding server hosting a la Minecraft)

  2. i have this error: there is no arrgument given that corresponds to the required formal parameter 'privateClientaddress' of' Networkmatch.Creatematch(string, uint, bool, string, string, string, int, int, Networkmatch.DataResponseDelegete<matchinfo>)'

  3. For everyone who has the problem with Unity 2019 and no "Dynamic String" in OnValueChanged() I found a solution how it works! The problem is that Unity does not detect any input in the InputField, so the if condition will never be true so I read the LobbyName directly from the InputField with UI Functions and not with OnValueChanged
    So how it works :

    1)Type in "UnityEngine.UI;" to get access to UI Functions

    2)Then type in "Public InputField inp_LobbyName;"

    3)Change the CreateRoom() Function like this:

    public void CreateRoom()

    {

    if(inp_Lobbyname.text != "" && inp_Lobbyname.text != null)

    {

    print("Creating Room: " + inp_Lobbyname.text + " with room for " + roomSize + " player");

    //Erstelle Raum

    networkManager.matchMaker.CreateMatch(inp_Lobbyname.text,roomSize, true, "","","", 0, 0, networkManager.OnMatchCreate);

    }

    }

    4)Go Back to Unity to your _NetworkManager Component, look for the script and put the InputField Component into the new empty public slot

    I hope I can help you with this 🙂

  4. Please help . I am using Unity 3D 2019 and the matchmaking isnt working . tried networkManager.matchMaker.CreateMatch(roomName, roomSize, true, "", "", "", 0, 0, networkManager.OnMatchCreate);
    can someone help me?

  5. Can anyone help me? i tried to use networkManager.matchMaker.CreateMatch(roomName, roomSize, true, "", "", "", 0, 0, networkManager.OnMatchCreate); but it's not working. I am using unity 2019.. cant figure out the problem..the code isnt showing any problem either..but room not creating..plz help

  6. if anyone see that the code didn't work, this probaly ok.(i have test):
    using UnityEngine;

    using UnityEngine.Networking;

    public class HostGame : MonoBehaviour

    {

    public uint RoomSize;

    string roomname;

    NetworkManager networkManager;

    private void Start()

    {

    networkManager = NetworkManager.singleton;

    networkManager.StartMatchMaker();

    }

    public void SetMatchSize()

    {

    RoomSize = networkManager.matchSize;

    }

    public void SetMatchName()

    {

    roomname = networkManager.matchName;

    }

    public void CreateRoom()

    {

    if (roomname != "" && roomname != null)

    {

    networkManager.matchMaker.CreateMatch(roomname, RoomSize, true, "", "", "", 0, 0, networkManager.OnMatchCreate);

    }

    }

    }

  7. 12:50 I immediately added the room password and size too, because why not, they were not that hard, but for none of the input fields, I could get an input… whenever I entered anything, in the network manager it would just clear the entire string. It took me roughly an hour in internet research to find out that, when selecting the function in the input field, you have to make sure you select the function in the 'dynamic' tab, and not in the one beneath… about an hour guys

  8. For people who can't create room it is happening becouse of you (kindly) 😀 I just fixed it myself I forgot to add on click funtion for naming etc it is happening becouse of our mistakes watch the video and double check everything

  9. Can somebody tell me why is his Canvas is setting itself to Inactive when he presses create room? Did i miss something that he wrote earlier in the tutorial?(i didn't watch the whole tutorial)

Leave a Reply

Your email address will not be published. Required fields are marked *