Skip to content

ShadowCastingMode

The ShadowCastingMode enum defines the shadow casting mode of an object (such as a GameObject), which determines whether the object will cast shadows in the scene.

attributesdescription
OffThe object does not cast shadows in the scene, even if it receives shadows itself.
OnObjects cast shadows in the scene and also affect other objects.
TwoSidedSame as On, but the shadows of this object will be rendered on both sides. This option is useful when displaying very thin objects, as the shadows will be visible on both sides of the object, improving visibility.
ShadowsOnlyThe object only casts shadows in the scene but does not have any impact on other objects. This is useful for creating objects that are solely used for shadows, such as lights or shadow walls in a scene.