From the course: Unity: AR Visualization 03 Complex Interactivity
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Create sync UI, state, and methods - Unity Tutorial
From the course: Unity: AR Visualization 03 Complex Interactivity
Create sync UI, state, and methods
- [Instructor] Before we get started with our cool multiplayer networking stuff, we need to create some UI to control the connection state. It's going to be a HUD button just like our menu button. Let's go and hide and show some stuff so that we can see what's going on. Over here in our UI Manager, let's expand, and let's hide our Part UI. We're going to show our HUD. Let's go in here and zoom out. You can see here we have one HUD button, so let's expand our HUD, and that's part of the default state. Let's go ahead and click on that, duplicate, and call this Connect. This is going to be the button we press to connect to player I/O. We want this top-right aligned however. So let's go click up here on our anchor, hit right aligned, zero that out, and you can see now I need to change my pivot, set that to one, and set my X-position to zero. Perfect, so I have a connect button as well as a menu button. But let me…
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
-
-
-
-
-
-
-
-
Create sync UI, state, and methods5m 45s
-
Creating your network manager5m 48s
-
Connecting to PlayerIO7m 42s
-
Starting a multiplayer connection5m 27s
-
Testing your multiplayer connection5m 51s
-
Creating a message handler6m 30s
-
Processing the join message4m 41s
-
Working with world state3m 51s
-
Sending hide messages10m 34s
-
Making your parts relative7m 35s
-
Syncing movement4m 39s
-
Syncing the addition of notes5m 44s
-
Syncing the deletion of notes6m 39s
-
AR app in action2m 9s
-
-