Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: joreldraw on August 28, 2012, 06:39:48 AM
-
How can i disable Tweencolor on UIButton?
-
The first part of what you wrote makes no sense, so I'm not sure what you're asking. Overwrite what script?
-
Updated the question. Sorry for confusion
-
Can't you just remove the color component? Or just toggle of the checkbox for the color component?
-
I've noticed this too. Sometimes I just want to attach UIButton to use the features inside the UIButton class. But the UIButton script seems to always need a colour to tween, which is annoying having to put up with the warnings each time when your button doesn't have an object with colours in it.
-
If you looking to just have a button that doesnt have a disabled color look at UIButtonColor.
ENAY: if you dont have colors on the button then what do you have? All UIButton does is switch colors depending on what state its in. If your looking for a script that just stores if the object is hovered writing your own script that listens for OnHover would be fairly simple. FYI You can have scripts like UIButtonScale without the UIButton script.
-
Why not just disable the UIButton script? Then it won't be coloring anything.