Color32.Color32 构造32位颜色
static function Color32 (r : byte, g : byte, b : byte, a : byte) : Color32
Description描述
Constructs a new Color with given r, g, b, a components.
用给定的r,g,b,a组件构造一个新的颜色。
C#
JavaScript
using UnityEngine;using System.Collections;public class example : MonoBehaviour {public Color32 color = new Color(0.2F, 0.3F, 0.4F, 0.5F);}
var color : Color32 = Color(0.2, 0.3, 0.4, 0.5);