Apply lighting to sprite in 3D space?

I have a crate, and I have a sprite for an image and some text on the crate, I mashed them together and it looks bad. Probably because the sprite doesn’t match the lighting. I added the sprite to the material of the crate and it definitely blended in, but it showed on all sides of the crate which definitely isn’t ideal. Is there a way to get sprites to be affected by shadows and all that?

Three (3) ways that Unity draws / stacks / sorts / layers / overlays stuff:

In short,

  1. The default 3D Renderers draw stuff according to Z depth - distance from camera.

  2. SpriteRenderers draw according to their Sorting Layer and Sorting Depth properties

  3. UI Canvas Renderers draw in linear transform sequence, like a stack of papers

If you find that you need to mix and match items using these different ways of rendering, and have them appear in ways they are not initially designed for, you need to:

  • identify what you are using
  • search online for the combination of things you are doing and how to to achieve what you want.

There may be more than one solution to try.

Additional reading in the official docs:

And SortingGroups can also be extremely helpful in certain circumstances:

Thanks, I ended up using a plane with a transparent material that had the sprite as it’s texture.