- Home /
Not cast shadow on specific object
I need my object to cast shadows on all objects except one. But I can't disable receive shadows on this object because it needs to receive shadows from other objects. How can I disable shadow casting from a specific object to another specific object?
I'm talking about dynamic shadows not baked shadows
I have yet to find anything in Unity to allow me to set up Shadow Linking. This should be a standard feature that seems to have slipped through the cracks.
Answer by tanoshimi · Jun 29, 2017 at 07:46 PM
Not quite sure I follow your use case, but is this not something you can achieve by setting the culling mask of the shadow-casting light to exclude the layer in which the object is placed?
No because then the object isnt affected by light. What I want is to have an object cast shadows on everything except one specific object. Can't disable receive shadows though because I want this object to receive shadows from other objects
In that case I think you'll have to write your own lighting model - it sounds like a very specific use.
Your answer
![](https://koobas.hobune.stream/wayback/20220612125152im_/https://answers.unity.com/themes/thub/images/avi.jpg)