Version: 2020.2

Color32Constructor

切换到手册
public Color32 (byte r, byte g, byte b, byte a);

描述

使用给定的 r、g、b、a 分量构造新的 Color32。

using UnityEngine;

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