Color.yellow Manual     Reference     Scripting  
Scripting > Runtime Classes > Color
Color.yellow

static var yellow : Color

Description

Yellow. RGBA is (1, 0.92, 0.016, 1), but the color is nice to look at!

JavaScript
// Assign a yellow color to this transform's material
transform.renderer.material.color = Color.yellow;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
transform.renderer.material.color = Color.yellow;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
transform.renderer.material.color = Color.yellow