Version: 2017.3
public string ToString ();
public string ToString (string format);

描述

返回该颜色的整齐格式化的字符串。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Color32 w = Color.white; void Example() { print(w.ToString("x")); } }