Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


On

Shadows are cast from this object.
Read time 1 minuteLast updated 4 days ago

Definition

On = 1

Remarks

Shadow rendering will use the same culling mode as specified in the object's shader. Typically this means that single-sided objects (like a Plane or a Quad) do not cast shadows if the light is behind them. Use ShadowCastingMode.TwoSided to treat objects as two-sided for shadow rendering.
Additional Resources: Renderer.shadowCastingMode.