Skip to main content
Inconsistent Software

Unity Color Picker

Screenshot

Type:

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

GitHub Page

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;