See Shadow but not GameObject

Hello Everybody :smiley: I would like to know how to make that the user can see a gameobject’s shadow, but not the GameObject mesh renderer. Thanks :smiley:

Mesh renderers have the option built in. Check out this image:


The official Unity documentation has this to say on ‘Cast Shadows’:

If enabled, the mesh will create
shadows when a shadow-casting Light
shines on it. The options are On and
Off to enable/disable shadows, Two
Sided to allow shadows to be cast from
either side of the mesh (ie, backface
culling is not taken into account) and
Shadows Only (ie, the shadows should
be visible but not the mesh itself).