Brackeys / MultiplayerFPS-Tutorial

A video series on making a multiplayer first-person shooter in Unity.
The Unlicense
658 stars 289 forks source link

Network Manager For Hosting Players #15

Open adnanbashir1993 opened 7 years ago

adnanbashir1993 commented 7 years ago

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

In Unity 2017 , it requires 9 arguments , either i didn't know the scenario , please correct me as i got a null reference error.

cesarchamorro commented 6 years ago

Your line code it's correct, maybe you're not giving values to roomName or roomSize, and that's why you're getting the null reference error, but I can't assure it, I would need more details of youre error message, the moment you're getting it to give you an specific answer, but you can try checking the values of you're variables as I said before.

Let me know if this helped you to solve you're issue.

ZahiriNatZuke commented 5 years ago

thanks for solution https://github.com/adnanbashir1993