Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

SpeedTreeImporter.enableSubsurfaceByDefault

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 enableSubsurfaceByDefault;

Description

Gets and sets a boolean to enable the subsurface scattering effect for the SpeedTree asset (affects only SpeedTree v8 assets).

This setting controls the light scattered out the back side of leaves and other two-sided SpeedTree materials to simulate a translucent surface.

To change this setting for a specific LOD, see SpeedTreeImporter.enableSubsurface and SpeedTreeImporter.enableSettingOverride.