Version: 2023.2
LanguageEnglish
  • C#

SpeedTreeImporter.castShadowsByDefault

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public bool castShadowsByDefault;

Description

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

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 and SpeedTreeImporter.enableSettingOverride.