Renderer.receiveShadows 接收阴影

var receiveShadows : bool

Description描述

Does this object receive shadows?

这个物体是否接收阴影?

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		renderer.receiveShadows = false;
	}
}
// make the object not receive shadows
//使物体不接收投影
renderer.receiveShadows = false;

参见: castShadows

Page last updated: 2010-12-16