Manual     Reference     Scripting  
  
Scripting > Enumerations > LightShadows   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • LightShadows
  • All Members
  • Values
  • Hard
  • None
  • Soft

LightShadows.None  

LightShadows.None

Description

Do not cast shadows (default).

See Also: light component.

JavaScripts
// Set light to not cast shadows.

light.shadows = LightShadows.None;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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