LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

Color32 Constructor

public Color32(byte r, byte g, byte b, byte a);

Description

Constructs a new Color32 with given r, g, b, a components.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Color32 color32 = new Color32(64, 128, 192, 255); }