LightShadows.None Manual     Reference     Scripting  
Scripting > Enumerations > LightShadows
LightShadows.None

LightShadows.None

Description

Do not cast shadows (default).

See Also: light component.

JavaScript
// Set light to not cast shadows.

light.shadows = LightShadows.None;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
light.shadows = LightShadows.None