Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Unity Game Development Blueprints
  • Toc
  • feedback
Unity Game Development Blueprints

Unity Game Development Blueprints

By : John P. Doran
4 (6)
close
Unity Game Development Blueprints

Unity Game Development Blueprints

4 (6)
By: John P. Doran

Overview of this book

If you want to build enticing projects with Unity, this book is for you. Readers who are familiar with the basics of how to create simple projects in Unity will have an easier time.
Table of Contents (11 chapters)
close
10
Index

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:

  1. Go to Edit | Render Settings, and set Ambient Light to Black, as we want to have all the light to be from our lighting.

  2. Next, we will need to select all of our model files in the Models/Props and Models/Modular Pieces folders (not the prefabs). From there, check Generate Lightmap UVs from the Model tab, and then click on the Apply button.

  3. 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...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete