Page 1 of 1

Image colors adjustable

Posted: Wed Dec 10, 2014 10:03 pm
by Boimans
Hi,



We have an actor that uses an image of a face. During dialogue the pic is loaded correctly, but the colors are wrong. The face is too dark. I guess your system uses the default unity settings for images (128 for all rgba values).



If we use the same pic in a plain Unity GUITexture with the default 128 values, we see the same as in the dialogue system. We can change the color manually for the GUITexture. Then they are ok. So it's not the pic.



We want to change the color of the NPC Portrait Image like this: rgba to r:238, g:238, b238 a:128 (or something).



Where do I do that?

Image colors adjustable

Posted: Thu Dec 11, 2014 2:48 am
by Tony Li
Hi,



If you're using Unity GUI (the legacy GUI system), portrait images call GUI.Label to draw the image. Edit the GUI skin assigned to your GUI Root. Edit the GUI style assigned to the portrait image's GUI Style Name field. If the field is blank, it uses the default "label" style. Expand Normal and OnNormal, and set the RGBA to your desired values. If this doesn't work, please let me know, and feel free to email a sample project to tony (at) pixelcrushers.com

Image colors adjustable

Posted: Fri Dec 12, 2014 3:03 am
by Boimans
At Normal and OnNormal, I only see a field for Background Texture and a field for Text Color that can be changed. I can change the color of the text (so I think I'm in the right place), but not the color of the Image itself.

Image colors adjustable

Posted: Fri Dec 12, 2014 4:02 am
by Tony Li
I'll look into this and post a solution later today.

Image colors adjustable

Posted: Fri Dec 12, 2014 1:03 pm
by Tony Li
I haven't been able to reproduce the issue you reported. Would you please email a sample scene or project (preferably as an exported unitypackage) to tony (at) pixelcrushers.com? If it's too big for email, please let me know so I can email you FTP site access. Also, what version of Unity are you using?

Image colors adjustable

Posted: Fri Dec 12, 2014 10:38 pm
by Boimans
Hi,



Before I forget, thank you for your effort. You know what, I just solved our problem (my import settings were wrong: Sprite instead of GUI), but the question still remains: how can I chenge the colors of the pic in a prortait.



I use version 4.5.5f1.



I made a sample project in which the problem is clearly visible. I zipped it and put it here: https://dl.dropboxusercontent.com/u/315 ... ushers.zip

If you prefer your ftp sollution, I can do that too.



I also made a screenshot to show the different colors here: https://dl.dropboxusercontent.com/u/315 ... Colors.jpg



Image colors adjustable

Posted: Sat Dec 13, 2014 4:13 am
by Tony Li
I'll add a color option to GUILabel and GUIImage in the next release (coming out on December 15).

Image colors adjustable

Posted: Sun Dec 14, 2014 5:20 pm
by Tony Li
Version 1.4.1 (with an image color option) is now available on the Pixel Crushers customer download site, and should be on the Unity Asset Store in a few days.

Image colors adjustable

Posted: Wed Dec 17, 2014 7:18 am
by Boimans
Thank you, most helpful, as always.

Image colors adjustable

Posted: Wed Dec 17, 2014 7:29 am
by Tony Li
My pleasure! Version 1.4.1 is now also on the Asset Store.