Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Creating a room using .CreateMatch

$
0
0
This has to deal with Matchmaker. I used this code out of the unity docs.
Code (CSharp):
  1. if (GUILayout.Button("Create Room"))
  2.         {
  3.             CreateMatchRequest create = new CreateMatchRequest();
  4.             create.name = "Roto";
  5.             create.size = 4;
  6.             create.advertise = true;
  7.             create.password = "";
  8.  
  9.             networkMatch.CreateMatch(create, OnMatchCreate);
  10.         }
Then in the call back function unity docs shows this...

Code (CSharp):
  1. public void...
Creating a room using .CreateMatch

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>