Light.shadows Manual     Reference     Scripting  
Scripting > Runtime Classes > Light
Light.shadows

var shadows : LightShadows

Description

How this light casts shadows?

See Also: LightShadows, shadowStrength property, Renderer.castShadows, Renderer.receiveShadows.

JavaScripts
// make the light cast hard shadows
light.shadows = LightShadows.Hard;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
light.shadows = LightShadows.Hard;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
light.shadows = LightShadows.Hard