文档

Unity Engine


User Manual

Script Reference

Unity Engine


receiveShadows

Does this object receive shadows?
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool receiveShadows { get; set; }

Remarks

Usually objects should receive shadows, but turning this off can be useful for optimization purposes, in cases of when you know that no shadows will be needed on this particular object.
Note that receive shadows flag is not used when using one of Deferred rendering paths; all objects receive shadows there.
Additional Resources: Renderer.shadowCastingMode.