Color32.operator Color 运算符Color

static implicit function Color (c : Color32) : Color

Description描述

Color can be implicitly converted to and from Color32.

Color可以从Color32隐式转换。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public Color color = new Color32(128, 255, 128, 255);

}
// Convert a Color32 to a Color

//转换一个Color32颜色到Color

var color : Color = Color32(128, 255, 128, 255);
Page last updated: 2011-9-15