I tried adding 2D lighting to a 2D project but nothing works. I created the URP asset, and the 2DRP asset, assigned the 2DRP asset to the URP one, assigned them in the project settings for graphics and for each quality level. Nothing worked. Some materials turned pink as they were supposed to, but not one of the sprites in the scene turned black, and adding lights has no effect at all. What did I do wrong?2d
You need to use “Sprite-Lit-Default” as the material for your sprites. When you correctly set up URP, any newly created or imported sprites will have this material assigned by default, but any sprites that existed before URP was set up will have the incorrect material.
You can either manually swap their materials to “Sprite-Lit-Default” or use the automatic method by navigating to Edit → Render Pipeline → Universal Render Pipeline → 2D Renderer → (Select both options). I’ve never had problems with the automatic method, but it’s experimental so beware and backup your project.
2 Likes
Have you tried to build and deploy on mobile? Spot lights 2D are just not visible… it a pure nightmare