using UnityEngine; using System.Collections; using UnityEngine.UI; public class Demo1 : MonoBehaviour { public ColorPicker cPicker; // Update is called once per frame void Update () { GetComponent ().color = _G.pickedColor; GetComponentInChildren ().text = "R " + _G.pickedColor.r * 255 + "\nG " + _G.pickedColor.g * 255 + "\nB " + _G.pickedColor.b * 255; } }