Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Color.green

static var green: Color;

Description

Solid green. RGBA is (0, 1, 0, 1).

// Assign a green color to this transform's material
transform.renderer.material.color = Color.green;