Lightmapping quickstart
Lightmapping is the process of baking or precalculating the lighting on a texture to static objects to make the game run faster and allow us to get the most out of our projects.
This generally isn't done as an optimization until you have your entire level finished, but I think this is probably the best place to talk about it. If you prefer to wait, come back to this section when you are done with your level, as doing a lightmapping pass can take a long time:
Go to Edit | Render Settings, and set Ambient Light to Black, as we want to have all the light to be from our lighting.
Next, we will need to select all of our model files in the
Models
/Props
andModels
/Modular Pieces
folders (not the prefabs). From there, check Generate Lightmap UVs from the Model tab, and then click on the Apply button.Lightmapping only works with static objects, that is, objects that will not be moving. That's our level stuff for sure, so select our Level 01 parent object, and click on the Static...