# g

> Green component of the color.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public byte g
```

### Examples

```csharp
using UnityEngine;

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