| r | 赤成分 |
| g | 緑成分 |
| b | 青成分 |
| a | アルファ成分 |
r、g、b、a 成分から Color を作成します。
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { public Color color = new Color(0.2F, 0.3F, 0.4F, 0.5F); }
| r | 赤成分 |
| g | 緑成分 |
| b | 青成分 |
r、g、b 成分と a を 1 として Color を作成します。
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { public Color color = new Color(0.2F, 0.3F, 0.4F); }