Version: 2017.2
public float grayscale ;

描述

颜色的灰度值。(只读)

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); } }