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

var receiveShadows : bool

Description

Does this object receive shadows?

JavaScripts
// make the object not receive shadows

renderer.receiveShadows = false;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
renderer.receiveShadows = false

See Also: castShadows