Beispiel #1
0
    void Start()
    {
        //Default Values
        _hsvColor.SetValues(0.0f, 1.0f, 1.0f);
        _colorPickBoxTintColor = new HSVColor(_hsvColor.h, 1.0f, 1.0f).ToRGBColor(null).ToUnityColor();
        _rgbColor = _hsvColor.ToRGBColor(_rgbColor);
        _hexStr   = _rgbColor.ToHexStr();

        //Load Default Colors
        LoadDefaultColors();

        //Load Custom Colors --  This basically ensures the _custumColors
        //Variable isn't null
        LoadCustomColors("");

        //Create Eye Dropper Zoom Texture
        ZoomedTex            = new Texture2D(11, 11, TextureFormat.ARGB32, false);
        ZoomedTex.filterMode = FilterMode.Point;
    }            //Start