Extends default Unity3D Color Property Drawer.
Color: copy, paste, hex.

Label, Color Picker Pick Color - standart.
Copy To Buffer (Button) - copy color value from property (painted in property color).
Paste From Buffer (Button) - paste color value (painted in buffer color).
HEX (Text Field) - hex color values RRGGBBAA. (Paste there from photoshop #XXXXXX)
HEX support color formats:
- RRGGBBAA (8bit/component with alpha);
- RRGGBB (8bit/component without alpha);
- RGBA (4bit/component with alpha);
- RGB (4bit/component without alpha).
Usage: unzip dll into Editor folder in Unity3D project enjoy!
Download: 1266714–57166–$ColorPropertyDrawer.dll.zip (3.73 KB)
1 Like
Looks very nice. Thank you!
If interested i can put function like EditorGUI.ColorField (http://docs.unity3d.com/Documentation/ScriptReference/EditorGUI.ColorField.html) for your own CustomEditor.
Thanks a lot, it is very useful.
Upgrade tools.
Now it supports copy/paste color even in the materials.
1266714–57166–$ColorPropertyDrawer.dll.zip (3.73 KB)
Look like there is a problem with animation within Unity, it automaticly keys color when you are in the graph.
2julinoleum
Can you describe the problem in more detail?
Ill try:
The problem is quite simple and not a big treat to my work.
First of all, in the Animation window, the material’s color curves update themselves in editor mode. Look at the first image “MainColor.a” value (0,2470).
On the second plan, I change the value to 0.25, rounded. At the exact same time as I hit enter, the value change back to 0,2470.
In my opinion, Unity decimals values round back to their nearest hex value. Trust me; it does not happen in RunTime, only under Editor Mode.
Another thing, linked to the first issue. When you move the current frame line (the red one), an autokey attach itself to the curve and move the curve’s value to its nearest decimal. See the third picture.
As I said, this is not a major problem. Its a great tooll