# castShadowsByDefault

> Gets and sets a boolean to toggle whether the imported SpeedTree casts shadows.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public bool castShadowsByDefault { get; set; }
```

### Remarks

Setting this variable to `true` lets the rendering pipeline use the imported SpeedTree asset in the shadow passes and generate soft shadows for a more realistic final rendering result.

To change this setting for a specific LOD, see [SpeedTreeImporter.castShadows](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/castshadows.md) and [SpeedTreeImporter.enableSettingOverride](/engine/6000.0/script-reference/unityeditor/speedtreeimporter/enablesettingoverride.md).
