# ShadowCastingMode

> How shadows are cast from this object.

## Definition

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

```csharp
public enum ShadowCastingMode
```

## Remarks

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

## Fields

| Value                                                                                                 | Description                                                    |
| ----------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [Off](/engine/6000.7/script-reference/unityengine/rendering/shadowcastingmode/off.md)                 | No shadows are cast from this object.                          |
| [On](/engine/6000.7/script-reference/unityengine/rendering/shadowcastingmode/on.md)                   | Shadows are cast from this object.                             |
| [ShadowsOnly](/engine/6000.7/script-reference/unityengine/rendering/shadowcastingmode/shadowsonly.md) | Object casts shadows, but is otherwise invisible in the Scene. |
| [TwoSided](/engine/6000.7/script-reference/unityengine/rendering/shadowcastingmode/twosided.md)       | Shadows are cast from this object, treating it as two-sided.   |
