Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: vexe on September 03, 2013, 01:05:38 AM

Title: [SOLVED] widget color alpha not changing?
Post by: vexe on September 03, 2013, 01:05:38 AM
Hello, this is pretty noob of me.  I want to access the 'tint color' of a widget, which is from my understanding is the 'color' property. I'm trying to change the alpha of my widget, (just like you do when you mess with the 'A" slider when you click on tint color).

I tried both myWidget.alpha = myFloatValue; and myWidget.color.a = myFloatValue; - The first had no effect, the second didn't compile.

Do I have to make a new color, copy the rgb values from the old color and apply the new alpha? - Isn't this how the alpha property is being set anyway? - Thanks.
Title: Re: widget color alpha not changing?
Post by: vexe on September 03, 2013, 01:13:13 AM
Lol. Didn't know color values ranges between 0 -> 1. I was using values between 0 -> 255.