Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

Color.black

public static var black: Color;

Description

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

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