Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: karsnen on September 25, 2013, 03:52:19 PM
-
Hello,
SCENARIO :
I have a UIButton which does not have a UISprite or UILabel. Just a button with a collider. Lets say an invisible button. Now this GameObject has only the collider & UIButton script on top it. Hence it has no children.
PROBLEM :
The button works perfectly fine, but I get this warning.
"MainMenuUI/UICamera/Panel/Anchor-Center/Room2Select" has nothing for UIButtonColor to color
UnityEngine.Debug:LogWarning(Object, Object)
UIButtonColor:Init() (at Assets/Plugins/NGUI/Interaction/UIButtonColor.cs:113)
UIButtonColor:Start() (at Assets/Plugins/NGUI/Interaction/UIButtonColor.cs:65)
REQUIREMENT :
How to avoid it? Is it okay if it stays?
Thanks.
NOTE : I have not moved to NGUI 3.0 yet.
-
Why do you need the UIButton script on that? Use a custom script or UIButtonMessage so you don't have the color things that UIButton brings.
-
@Nicki.
Yep it worked. Thanks.