From the course: Unity: AR Visualization 03 Complex Interactivity
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Creating your network manager - Unity Tutorial
From the course: Unity: AR Visualization 03 Complex Interactivity
Creating your network manager
- [Instructor] Now that we got our UI done for our HUD it's time to make a network manager. Go over to the debug manager under scripts, click it and duplicate. We're going to call this network manager. (tapping keyboard) I'm going to copy that name and let's open it up in our code editor. Excellent. First thing I want to do is change my class name to network manager. Next I want to update our using statements. Not going to use these two. I am going to use a connection to PlayerIO. PlayerIOClient. I'm also going to need a reference to the collections. I'm at system.collections.generic. All right. With our usings out of the way, let's go and create some constants. (tapping keyboard) Constant I want to create here is the game ID, that's the ID that we saw in PlayerIO. You go back to your browser where you created your game. Let's go grab our game ID. Go back to your code editor and we're going to make a private…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Create sync UI, state, and methods5m 45s
-
(Locked)
Creating your network manager5m 48s
-
(Locked)
Connecting to PlayerIO7m 42s
-
(Locked)
Starting a multiplayer connection5m 27s
-
(Locked)
Testing your multiplayer connection5m 51s
-
(Locked)
Creating a message handler6m 30s
-
(Locked)
Processing the join message4m 41s
-
(Locked)
Working with world state3m 51s
-
(Locked)
Sending hide messages10m 34s
-
(Locked)
Making your parts relative7m 35s
-
(Locked)
Syncing movement4m 39s
-
(Locked)
Syncing the addition of notes5m 44s
-
(Locked)
Syncing the deletion of notes6m 39s
-
AR app in action2m 9s
-
(Locked)
-