castShadowsByDefault
Gets and sets a boolean to toggle whether the imported SpeedTree casts shadows.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor
public bool castShadowsByDefault { get; set; }
Remarks
Setting this variable to lets the rendering pipeline use the imported SpeedTree asset in the shadow passes and generate soft shadows for a more realistic final rendering result.
trueTo change this setting for a specific LOD, see SpeedTreeImporter.castShadows and SpeedTreeImporter.enableSettingOverride.