Documentation

Unity Engine

Unity Engine

g

Green component of the color.
Read time 1 minuteLast updated 2 months ago

Definition

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

Examples

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