1
NGUI 3 Support / Re: Manually Using TweenAlpha Screws Up Button Tweens
« on: April 18, 2014, 03:04:44 PM »
Sorry for the slow response on this - been crunching quite a bit lately.
Putting the GetComponents inside the if check is fine, but using group 0 for the "automatic" tweens used by UIButton seems bad to me since whenever I add a new tween to an object its default tween group is 0 (which would mean any that you add will be overwritten by the UIButton tween unless you change the group every time you add one). Also, think of all the users out there that already have tweens attached to their objects and haven't changed the group from the default of 0 - all of their tweens would be broken - that's why I recommended -1 - it's an int, so -1 is not illegal or anything and it has a much lower likelihood of being already in use by current users.
Thoughts?
Putting the GetComponents inside the if check is fine, but using group 0 for the "automatic" tweens used by UIButton seems bad to me since whenever I add a new tween to an object its default tween group is 0 (which would mean any that you add will be overwritten by the UIButton tween unless you change the group every time you add one). Also, think of all the users out there that already have tweens attached to their objects and haven't changed the group from the default of 0 - all of their tweens would be broken - that's why I recommended -1 - it's an int, so -1 is not illegal or anything and it has a much lower likelihood of being already in use by current users.
Thoughts?