Skip to content

mattatz/unity-immediate-color-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unity-immediate-color-picker

Color picker for Unity in immediate GUI mode.

Demo

Usage

in a MonoBehaviour,

IMColorPicker colorPicker;

void OnGUI()
{
    if(colorPicker == null)
    {
        colorPicker = new IMColorPicker();
    }
    colorPicker.DrawWindow(); // draw color picker UI with GUI.Window
    colorPicker.DrawColorPicker(); // or draw color picker UI only
}

You can use color presets with IMColorPreset(ScriptableObject).

public IMColorPreset preset;
IMColorPicker colorPicker;

void OnGUI()
{
    if(colorPicker == null)
    {
        colorPicker = new IMColorPicker(preset);
    }
    // ...
}

See example scenes for details.

About

Color picker for Unity in immediate GUI mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages