Renderer.castShadows Manual     Reference     Scripting  
Scripting > Runtime Classes > Renderer
Renderer.castShadows

var castShadows : bool

Description

Does this object cast shadows?

JavaScripts
// make the object not cast shadows
renderer.castShadows = false;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
renderer.castShadows = false;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
renderer.castShadows = false

See Also: receiveShadows, Light.shadows.