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

Create sync UI, state, and methods - Unity Tutorial

From the course: Unity: AR Visualization 03 Complex Interactivity

Start my 1-month free trial

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…

Contents