Type: Open Source Project

Screenshot

My contribution to unity developers who need a color picker to use in their games in unity.

Github page star this repo fork this repo

Example of hooking up the event listener

public Renderer renderer;
public ColorPicker picker;
 
// Use this for initialization
void Start ()
{
    picker.onValueChanged.AddListener(color =>
    {
        renderer.material.color = color;
    });
    renderer.material.color = picker.CurrentColor;
}

// Update is called once per frame
void Update () {

}
	

Example of setting the color in code.

Color color = Color.green;
picker.CurrentColor = color;