I can’t get shadows to show up no matter what options I try.
There is a light above here that I want not to show up on the below platform.
My light has shadows as Hard Shadows
Both objects/planes in the first image have cast shadows on, opaque, receive shadows
I saw some recommendations to make sure shadows are on or shadow distance in project settings but mine don’t appear to look like screenshots I’ve seen online
Tried to post more screenshots of my settings but it won’t let me add more than one…
How do I get shadows?? This is killing me.
Ignore the settings in Project Settings > Quality: that “Distance Shadowmask” is only applicable when you bake lighting. You are talking about realtime shadows, I assume.
Since it looks like you’re using URP, can you show the properties of your URP asset? Should be in /Assets/Settings, for new projects.
It looks like this:
Do you have shadows enabled for your main light?
What about Additional lights? If this is a spotlight, it is probably an “additional” one as your main light is a Directional (the sun, if you have one).
Also check shadow distance. If you’re too far with the camera, you won’t see shadows.
1 Like
Ohhhh that was it!! The shadow distance on the URP asset. I thought the “URP Asset” was just a long form name of any normal asset. Turns out its the graphics settings under the project folder. Thanks so much!!
1 Like
No problem, glad to be of help!
Yeah I think in recent years Unity switched a lot to asset-based settings (so basically ScriptableObjects), so you can have multiple and swap them in the Editor or at runtime.
For the future: when you bake shadows and you don’t see them, you might want to go into Quality settings and turn Distance Shadowmask to Shadowmask.
Distance Shadowmask will keep displaying realtime shadows instead of baked ones as long as you’re within realtime shadow range (the one you’re editing right now off the URP asset).
More info: Unity - Manual: Lighting Mode