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

var castShadows : boolean

Description

Does this object cast shadows?

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

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
renderer.castShadows = false

See Also: receiveShadows, Light.shadows.