Skip to content

yosun/HSV-Color-Picker-Unity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HSV-Color-Picker-Unity

HSV color picker for Unity's uGUI, now including hex entry and mobile!

alt tag

alt tag

Should be really easy to use. Just add the prefab to the canvas, hook up an event, and it's good to go.

    public Renderer renderer;
	public HSVPicker picker;
     
	// Use this for initialization
	void Start ()
	{
		picker.onValueChanged.AddListener(color =>
		{
			renderer.material.color = color;
		});
	}
 
	// Update is called once per frame
	void Update () {
 
	}

if you want to assign your own color first, just do this call and it sets the slider and picker to the proper selection.

    Color color = Color.green;
    picker.AssignColor(color);

About

HSV color picker for Unity's uGUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%