Setting the defaultColor on a newly created UIButton which hasn't been started yet has no effect. The following patch made it work for me:
--- a/Assets/NGUI/Scripts/Interaction/UIButtonColor.cs
+++ b/Assets/NGUI/Scripts/Interaction/UIButtonColor.cs
@@ -48,10 +48,13 @@ public class UIButtonColor : MonoBehaviour
{
get
{
- if (!mStarted) Init();
+ if (!mStarted) Start();
return mColor;
}
- set { mColor = value; }
+ set {
+ if (!mStarted) Start();
+ mColor = value;
+ }
}
void Start ()