ドキュメント

Unity Engine

Unity Engine

receiveShadows

Does this object receive shadows?
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.