Version: Unity 6.6 Alpha (6000.6)
Language : English
Introduction to the 2D lighting system in URP
Prepare your project for 2D lighting

Adding 2D lights

Techniques and resources for creating different types of 2D lights.

Topic Description
Prepare your project for 2D lighting Create a Light 2D GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
in your project.
Prepare and upgrade sprites for 2D lighting in URP Prepare your spritesA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
and existing materials to be lit by 2D lighting.
Create a 2D light Create the different types of built-in 2D lights.
Configure a 2D light Configure the properties of a Light 2D GameObject to achieve different lighting effects.
Add a normal map or a mask map to a sprite in URP To create surface details such as bumps, grooves, and scratches that catch the light from a 2D light, add a normal mapA type of Bump Map texture that allows you to add surface detail such as bumps, grooves, and scratches to a model which catch the light as if they are represented by real geometry.
See in Glossary
or a mask map to a sprite.
Enable 2D lighting with the Tilemap Renderer in URP Set up the required settings to use the TilemapA GameObject that allows you to quickly create 2D levels using tiles and a grid overlay. More info
See in Glossary
Renderer component with URP to enable 2D lighting.
Create a custom 2D light type To create a custom 2D light type, use the Light2DProvider API. For example to create a new light type with a custom shape.
Light 2D component reference for URP Understand the properties and options available to customize a Light 2D GameObject.

Additional resources

Introduction to the 2D lighting system in URP
Prepare your project for 2D lighting