Author Topic: Disable Tweencolor on UIButton  (Read 8425 times)

joreldraw

  • Guest
Disable Tweencolor on UIButton
« on: August 28, 2012, 06:39:48 AM »
How can i disable Tweencolor on UIButton?
« Last Edit: August 30, 2012, 01:15:08 AM by joreldraw »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Disable Tweencolor on UIButton
« Reply #1 on: August 28, 2012, 06:50:24 AM »
The first part of what you wrote makes no sense, so I'm not sure what you're asking. Overwrite what script?

joreldraw

  • Guest
Re: Disable Tweencolor on UIButton
« Reply #2 on: August 30, 2012, 01:15:49 AM »
Updated the question. Sorry for confusion

Shelt

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Disable Tweencolor on UIButton
« Reply #3 on: August 30, 2012, 01:20:41 AM »
Can't you just remove the color component? Or just toggle of the checkbox for the color component?

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: Disable Tweencolor on UIButton
« Reply #4 on: August 30, 2012, 07:25:06 AM »
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.

PhilipC

  • Guest
Re: Disable Tweencolor on UIButton
« Reply #5 on: August 30, 2012, 11:37:18 AM »
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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Disable Tweencolor on UIButton
« Reply #6 on: August 30, 2012, 04:35:19 PM »
Why not just disable the UIButton script? Then it won't be coloring anything.