기술 자료

Unity Engine

Unity Engine

receiveShadows

Does this object receive shadows?
읽는 시간 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.