- Home /
Why are my pixel art black in game window but not in scene windows?
I had this problem before but i solved it idk how now. Now i tried to ad enemy and its all black in game but not in scene view, i recently add urp to my project from brackeys tutorial and now this is happening. Don 't know if it's fault of urp or what but i need help. I tried to import same enemy charater to new empty project and it's good.
Answer by ryanmillerca · Nov 23, 2020 at 07:07 PM
Scene view defaults to showing things with default/no lighting. Game view renders things as per the in-game render pipeline - i.e. with lights, post processing, etc. I'm going to guess your pixel art is placed on lit-sprites that are black in game view because there aren't any lights. Change the sprite shader to one that's unlit.
Answer by Happy-Zomby · Nov 23, 2020 at 09:41 AM
Hi, do you have a light component in your scene ?
I would recommend adding a light source - directional light and see if that solves your issue. The scene is has its own light so will appear lit (except if you click the lightbulb next to 2d) but the game needs a light source. https://docs.unity3d.com/$$anonymous$$anual/LightingInUnity.html