Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

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

Color.grayscale

public float grayscale;

Description

The grayscale value of the color. (Read Only)

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Color color = new Color(0.3F, 0.4F, 0.6F); void Example() { print(color.grayscale); } }

Did you find this page useful? Please give it a rating: