8
Acquiring a House
During this chapter, we will enable our metaverse to allow its users to settle in our world by acquiring a home. To do so, we will provide the Prefab of the houses we saw during Chapter 5, Preparing a New World for Travel, with a script that will allow a player to interact.
During this acquisition process, we will first consult the database, then, if the user has been able to obtain ownership of the building, we will update the building document in Firestore, so that it links the user’s ownership information.
In this chapter, we will cover the following topics:
- The concept of home
- Enabling a user to obtain a home
- Linking a house to a player
- Converting a house to a non-fungible token (NFT)
Technical requirements
This chapter ...
Get Build Your Own Metaverse with Unity now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.