Color.yellow 黄色

static var yellow : Color

Description描述

Yellow. RGBA is weird (1, 235/255, 4/255, 1), but the color is nice to look at!

黄色。 RGBA 是怪异的 (1, 235/255, 4/255, 1) , 但是颜色看起来漂亮!

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public void Awake() {

		transform.renderer.material.color = Color.yellow;

	}

}
// Assign a yellow color to this transform's material

// 赋一个黄色给这个变换的材质。



transform.renderer.material.color = Color.yellow;
Page last updated: 2010-12-16