| r | 赤成分 |
| g | 緑成分 |
| b | 青成分 |
| a | アルファ成分 |
r、g、b、a 成分から Color を作成します。
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color newColor = new Color(0.3f, 0.4f, 0.6f, 0.3f); } }
| r | 赤成分 |
| g | 緑成分 |
| b | 青成分 |
r、g、b 成分と a を 1 として Color を作成します。
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Color newColor = new Color(0.3f, 0.4f, 0.6f); } }