# ShadowsOnly

> Object casts shadows, but is otherwise invisible in the Scene.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.Rendering](/engine/6000.6/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
ShadowsOnly = 3
```

### Remarks

This is useful for certain effects or optimization purposes; essentially this makes an object that only casts shadows, but is otherwise invisible.

Additional Resources: [Renderer.shadowCastingMode](/engine/6000.6/script-reference/unityengine/renderer/shadowcastingmode.md).
