Techniques and resources for creating 2D lights and applying 2D lighting effects.
| Topic | Description |
|---|---|
| Introduction to 2D lighting | Understand the tools and runtime components you use to create a lit 2D sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info See in Glossary. |
| Create a 2D light | Create a 2D light that illuminates compatible 2D GameObjectsThe 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 scene. |
| Make a GameObject compatible with 2D lights | Make a shaderA program that runs on the GPU. More info See in Glossary or a visual effect graph compatible with 2D lights. |
| Add a normal map or a mask map to a sprite | Add surface detail such as bumps, grooves, and scratches to a 2D sprite. |
| Blend 2D lights | Change how a 2D light interacts with GameObjects and other 2D lights. |
| Shadows from 2D lights | Add shadows from 2D lights or create a custom shadow. |
| Optimize 2D lights by batching | Organize your 2D lights with the Light Batching Debugger window so Unity uses fewer textures to render light and shadows. |
| Create a custom 2D light type | Create a custom 2D light type using the Light2DProvider API. |
| Light 2D component reference | Explore the properties and options you can use to customize the appearance and behavior of 2D lights. |