O'Reilly logo

Unity 5.x Game Development Blueprints by John P. Doran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Lightmapping quickstart

Lightmapping is the process of baking or precalculating the lighting on a texture of 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 finished building your entire level, 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:

  1. Go into Window | Lighting. From there, select the Scene tab and then change Ambient Intensity to 0 as we want to have all of the light in the level to be from our lighting. Also select the Skybox property and select our Nightsky and you should note the world ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required