2D Lights - Sprite is appearing black in the camera view.
Hey. I'm trying to use the new 2D lights in Unity 2019.2. Sprites with the Sprite-Lit-Default shader on them appear fine in scene view, but appear black in the camera view. This isn't resolved when hitting play. Am I missing something?
black-sprite.png
(203.9 kB)
Comment
Best Answer
Answer by Reckope · Sep 12, 2019 at 12:06 AM
Turns out it was because the z-coordinate value of the actual light was negative, meaning it was appearing behind the sprite. Setting it to 0 (same as the sprite) fixed the issue.