![]() ![]() PhotonNetwork.ConnectUsingSettings("0.1") For the function call PhotonNetwork.ConnectUsingSettings() we can add the version number of the game as a string. This will enable us to host and join rooms of our game based on the AppID. ![]() When we start the game, we want to connect to the Photon network. This script will handle the network connection and spawn connected players. Network connectionĬreate a new script called NetworkManager and add it to an empty object in the scene. Copy this ID and paste it in the field “Your AppID”, set your cloud region and save these settings. You will receive a mail with a link to your account which contains an AppID. Once the project is downloaded, open the PUN Wizard (Window > Photon Unity Networking). ![]() This package also contains several demos, which are not required for this tutorial, but can give you a nice idea what the possibilities are. Installationīefore we can get into the code, we need to install PUN. More tutorials can be found on their official website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |