Color32.ToString 转字符串

function ToString () : String
function ToString (format : String) : String

Description描述

Returns a nicely formatted string of this color.

返回该颜色一个格式化好的字符串。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public Color32 w = Color.white;

	void Awake() {

		print(w.ToString("x"));

	}

}
var w : Color32 = Color.white;

print(w.ToString("x"));
Page last updated: 2011-9-15