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.
| attributes | description |
|---|---|
| Off | The object does not cast shadows in the scene, even if it receives shadows itself. |
| On | Objects cast shadows in the scene and also affect other objects. |
| TwoSided | Same 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. |
| ShadowsOnly | The 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. |
