Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


r

Red component of the color.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public byte r

Examples

using UnityEngine;public class Example : MonoBehaviour{ Color32 color = Color.white; void Start() { color.r = 0; }}