Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

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

LightRenderMode.Auto

Description

Automatically choose the render mode.

This chooses whether to render the Light as a pixel or vertex light (recommended and default). See Also: light component.

	// Set light's render mode to automatic

light.renderMode = LightRenderMode.Auto;