- Home /
Change button opacity using C# script?
Hi, I am using the Unity 4.6 beta and was wondering what is the easiest way to fade the opacity in or out on a button object? I tried changing the image.color.a of the object but it didn't work. Thanks!
Comment
Best Answer
Answer by Kiwasi · Oct 17, 2014 at 01:34 AM
Button opacity is determined by the alpha channel of the texture on the image component.
This may help
http://docs.unity3d.com/460/Documentation/ScriptReference/UI.Graphic.CrossFadeAlpha.html