Renderer.castShadows 投射阴影

var castShadows : bool

Description描述

Does this object cast shadows?

这个物体是否投射阴影?

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		renderer.castShadows = false;
	}
}
// make the object not cast shadows
//使物体不投射阴影
renderer.castShadows = false;

参见: receiveShadows, Light.shadows.

Page last updated: 2010-12-16