文档

Unity Engine

Unity Engine

shadows

Determines if this light will cast soft or hard shadows, or not cast shadows at all.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public LightShadows shadows { get; set; }

Remarks

Changing this setting can significantly affect visual quality and performance. Typically, turning shadows off boosts performance dramatically at the expense of realism and depth, while enabling soft shadows enhances realism, depth, and visual fidelity at significant performance costs.