文档

Unity Engine

Unity Engine

Color32(byte, byte, byte, byte)

Constructs a new Color32 with given r, g, b, a components.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Constructor
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public Color32(byte r, byte g, byte b, byte a)

Parameters

Examples

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