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

var receiveShadows : boolean

Description

Does this object receive shadows?

JavaScript
// make the object not receive shadows

renderer.receiveShadows = false;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
renderer.receiveShadows = false

See Also: castShadows