Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
Build Your Own Metaverse with Unity

You're reading from   Build Your Own Metaverse with Unity A practical guide to developing your own cross-platform Metaverse with Unity3D and Firebase

Arrow left icon
Product type Paperback
Published in Sep 2023
Publisher Packt
ISBN-13 9781837631735
Length 586 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
David Cantón Nadales David Cantón Nadales
Author Profile Icon David Cantón Nadales
David Cantón Nadales
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Part 1: Getting Started
2. Chapter 1: Getting Started with Unity and Firebase FREE CHAPTER 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

Bringing the NPC to life

Our NPC will be present in all the scenes; otherwise, we will not be able to leave the world. To facilitate this task, we will create a Prefab that houses the character and its functionalities.

To achieve this, we will follow these steps:

  1. Anywhere in MainScene, drag and drop the Peasant Girl@Dwarf Idle asset. If we click Play, we will see that the character is static; it has no life and it doesn’t move with the animation we selected in Mixamo. This is because we need to add an Animator component and link the animation.
Figure 7.8 – Placing the FBX model in the scene

Figure 7.8 – Placing the FBX model in the scene

  1. While in the Peasant Girl@Dwarf Idle GameObject, click on the Add Component button in the Inspector panel and add the Animator component.
Figure 7.9 – Animator component

Figure 7.9 – Animator component

  1. The Animator component needs an Animator Controller. To create an Animator Controller, in the Assets | _App | Characters...
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 $19.99/month. Cancel anytime
Banner background image