Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Build Your Own Metaverse with Unity

You're reading from  Build Your Own Metaverse with Unity

Product type Book
Published in Sep 2023
Publisher Packt
ISBN-13 9781837631735
Pages 586 pages
Edition 1st Edition
Languages
Concepts
Author (1):
David Cantón Nadales David Cantón Nadales
Profile icon David Cantón Nadales

Table of Contents (20) Chapters

Preface 1. Part 1: Getting Started
2. Chapter 1: Getting Started with Unity and Firebase 3. Chapter 2: Preparing Our Player 4. Chapter 3: Preparing Our Home Sweet Home: Part 1 5. Chapter 4: Preparing Our Home Sweet Home: Part 2 6. Chapter 5: Preparing a New World for Travel 7. Part 2: And Now, Make It Metaverse!
8. Chapter 6: Adding a Registration and Login Form for Our Users 9. Chapter 7: Building an NPC That Allows Us to Travel 10. Chapter 8: Acquiring a House 11. Chapter 9: Turning Our World into a Multiplayer Room 12. Chapter 10: Adding Text and a Voice Chat to the Room 13. Part 3: Adding Fun Features Before Compiling
14. Chapter 11: Creating an NPC That Allows Us to Change Our Appearance 15. Chapter 12: Streaming Video Like a Cinema 16. Chapter 13: Adding Compatibility for the Meta Quest 2 17. Chapter 14: Distributing 18. Index 19. Other Books You May Enjoy

Adding Mobile Support

So far, our character is able to move around with PC controls, that is with the W, A, S, D keys, Spacebar, mouse clicks, and so on. But you may ask, what about on a mobile device? Here we solve it. Fortunately, Unity offers us an easy solution to solve the character movement with touch controls.

Next, we will add a step by step system that allows us to make movements with our fingers. To do so, we will follow these steps:

  1. We must make some modifications in the PlayerInstance Prefab, double click on the Prefab located in Assets | Photon | PhotonUnityNetworking | Resources to edit it.
  2. Unity offers a Prefab that practically brings this system, it is called UI_Canvas_StarterAssetsInputs_Joysticks and we look for it in the path Assets | StarterAssets | Mobile | Prefabs | CanvasInputs and we drag it to the PlayerInstance Prefab.
    Figure 2.35 – Adding Mobile Controls Prefab

Figure 2.35 – Adding Mobile Controls Prefab

  1. Now, we select the UI_Canvas_StarterAssetsInputs_Joysticks...
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 ₹800/month. Cancel anytime}