Lighting can make or break the atmosphere of your game, even in 2D. In this tutorial, we’ll explore how to harness Unity’s powerful 2D lighting system to bring your scenes to life. You’ll learn how to add dynamic lights, control shadows, and craft visually striking effects that make your game stand out. Whether you’re aiming for a moody platformer or a vibrant top-down adventure, this guide will give you the tools to illuminate your 2D world like a pro.
In this tutorial, the goal is to create 2d lights with Unity but also a map with a tile palette and a tilemap. The 2d lights can be colored and they can be added to each other.
The first thing to do is to create a project with the Universal Render Pipeline :
Next you can download some tileset to create a test map : pixel art top down
After you have downloaded the textures you need to import the texture into Unity : 
You can use the Sprite Editor to slice the tiles, you will need to specify the size of the tiles 32×32 :
After the splitting is complete you can create a tile palette like this :
Open the tile palette editor like this :
After the tile palette editor is open you can drag and drop the previous texture on the palette to create multiple tiles.
To create the tilemap click on the scene hierarchy and select tilemap :
After the tilemap is created you can paint with the tile palette open on the tilemap like this :
As you see on the screen I create 2 tilemap one for the ground and one for the tree, if you want to do the same you need to modify the tilemap renderer for the tilemap on top : order in Layer is set to 1.
Lighting isn’t just for 3D games—it can dramatically enhance the mood, depth, and polish of your 2D scenes too. In this tutorial, you’ll learn how to leverage Unity’s 2D lighting system to create captivating effects, from dynamic spotlights to atmospheric shadows and glowing elements. Perfect for platformers, puzzle games, or any 2D project, this guide will help you master the art of lighting to make your game world shine.
Now it’s time to create some 2d lights, creating lights is really simple you need to pick one type of light first :
You can play around with lights to see which one you prefer.