Version: 2022.2
言語: 日本語
public byte this[int] ;

説明

Access the red (r), green (g), blue (b), and alpha (a) color components using [0], [1], [2], [3] respectively.

using UnityEngine;

public class Example : MonoBehaviour { Color32 color = new Color32(0, 0, 0, 0); void Start() { //The same as color.g = 255 color[1] = 255; } }