Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Light.shadowSoftnessFade

Switch to Manual
var shadowSoftnessFade: float;
float shadowSoftnessFade;
shadowSoftnessFade as float

Description

Fadeout speed of directional light's soft shadows.

See Also: shadows, shadowSoftness properties.

	// make light's shadow softness fade out really fast
	light.shadowSoftnessFade = 0.3;
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        light.shadowSoftnessFade = 0.3F;
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		light.shadowSoftnessFade = 0.3F