LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

ShadowCastingMode.ShadowsOnly

Description

Object casts shadows, but is otherwise invisible in the scene.

This is useful for certain effects or optimization purposes; essentially this makes an object that only casts shadows, but is otherwise invisible.

See Also: Renderer.shadowCastingMode.