Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Oculus Rift Development

You're reading from   Mastering Oculus Rift Development The next frontier of gaming and simulation

Arrow left icon
Product type Paperback
Published in Feb 2017
Publisher Packt
ISBN-13 9781786461155
Length 306 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Jack Donovan Jack Donovan
Author Profile Icon Jack Donovan
Jack Donovan
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Exploring a New Reality with the Oculus Rift FREE CHAPTER 2. Stepping into Virtual Reality 3. Improving Performance and Avoiding Discomfort 4. Interacting with Virtual Worlds 5. Establishing Presence 6. Adding Depth and Intuition to a User Interface 7. Hearing and Believing with 3D Audio 8. Adding Tone and Realism with Graphics 9. Bringing Players Together in VR 10. Publishing on the Oculus Store

Tying together the multiplayer lobby


Create a copy of your CreateCanvas and disable the original in the Inspector to hide it for now. Remove all of the buttons and images from the canvas, except the START button, so that you're left with a mostly empty menu, as shown in the following screenshot:

Rename the START button to BACK and change its text to BACK to match. Create a new Button object within the JoinCanvas and set Width to 350, Height to 30, and Scale to 0.01. Give it the same styling and font as the other buttons, but remove the text for now. Duplicate the button three times and arrange the four in a list, naming them Match1, Match2, Match3, and Match4 in Inspector. They should look something like the following on the canvas:

These four buttons will represent up to four matches returned by the matchmaking system. They'll display the level name and the current number of players in the match using the button's text field, which the NetworkGameManager script will update.

We'll need...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime