- Home /
How to make gameobject invisible but still cast shadows without mesh renderer?,I have a custom 3D model that doesn't have a mesh renderer, how to I make it invisible while casting shadows?
My model doesn't have a mesh renderer, which is the only way I can think about doing this. When I add a mesh renderer, it does nothing. Also, I'm very new to unity.
Answer by In0sc0p3dJFK · Jun 28, 2021 at 08:46 PM
it needs a mesh renderer to cast shadows.
the solution to this is to add the mesh renderer back, and set the alpha on the material to 0. And make sure that "cast shadows is ticked. And for the surface that is receiving shadows, make sure to enable "can receive shadows" (both in the inspector).
Your answer
![](https://koobas.hobune.stream/wayback/20220613035553im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
parts of a 3d model are darker than they should be 0 Answers
How to render text or a texture in a shadow 0 Answers
Shadows don't appear through a custom shader 0 Answers
Transparent rendering mode with shadows 0 Answers
Shadow artifact 0 Answers