Color32.operator Color 运算符Color
static implicit function Color (c : Color32) : Color
Description描述
Color can be implicitly converted to and from Color32.
Color可以从Color32隐式转换。
C#
JavaScript
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颜色到Colorvar color : Color = Color32(128, 255, 128, 255);