Creating prefabs with our GOs
We have our different GOs and scenes, and all these things work great within the scene. But what if we wanted to have a scene that has objects that we can modify, and then it could update on all the other scenes You’ll notice that every time we make a new project, we duplicate our scene, and then anything that happens in the scene that we worked on now won’t work on the other scenes. So, a way to create instances of objects that update across scenes is through the use of prefabs.
Prefabs in Unity are preconfigured GOs that can be reused multiple times in a scene or across multiple scenes. They are like templates or blueprints of GO and can contain any combination of components, such as scripts, meshes, and materials. To create a prefab, you can select a GO in a scene, drag it into the Project window, give it a name, and make changes to it in the Inspector window. These changes will be applied to all instances of the prefab in the scene...