Author Topic: I get "has nothing for UIButtonColor to color", Warning  (Read 4158 times)

karsnen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
I get "has nothing for UIButtonColor to color", Warning
« 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.

Quote
"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.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: I get "has nothing for UIButtonColor to color", Warning
« Reply #1 on: September 25, 2013, 04:49:32 PM »
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.

karsnen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: I get "has nothing for UIButtonColor to color", Warning
« Reply #2 on: September 25, 2013, 05:15:05 PM »
@Nicki.

 Yep it worked. Thanks.