Designing the Scene
We have finally arrived at the chapter where we will start programming. In addition to designing a nice scene that will serve to attach houses to our world, we will add functionalities through C# scripts. These functionalities will give the scene the power to obtain buildings dynamically from our Firestore database. But what does this mean?
We will create functionality that will help us to manage the slots in the scene that can contain a building. This way, we will not have to perform the tedious task of creating dozens of records in the database.
We, as creators of worlds, will design a scene resembling a neighborhood. In the holes where the houses will go, we will create a special object with a script in C# that will register and update these slots, linking them to Firebase.
Whether we press Play in the scene or when the metaverse is compiled and published, when the user enters the game, these scripts will connect to the database, consult the building...