Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

Color32.g

public byte g;

Description

Green component of the color.

using UnityEngine;

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

Did you find this page useful? Please give it a rating: