1
DOTween & DOTween Pro / DOTween and for's
« on: October 15, 2015, 08:03:13 PM »
Hey,
I've looked around but couldn't find anyone with this issue so maybe I am doing something wrong. My game uses NGUI for practically everything UI-wise, and I was until recently using HOTween to animate my buttons colors and multiple properties really. It was working nicely but I decided to upgrade to DOTween as its better, accordingly to you =P.
However, apparently it is not being able to tween the color of NGUI Widgets for some reason. Here is the call I am using:
_tweenColor = DOTween.To(() => _childWidgets.color, x => _childWidgets.color = x, _pressedColor , _currentAnimationDuration).SetAs(_tweenParams);
And the _tweenParams in this occasion:
_tweenParams.SetEase (Ease.InOutSine).SetUpdate(true);
In short, its just not working =/ Meanwhile, this other call is working as expected:
_tweenHighlight = DOTween.To(() => HighlightSprite.alpha, x => HighlightSprite.alpha = x, 1f, _currentAnimationDuration).SetAs(_tweenParams);
So... any idea on what might be causing this issue? The color doesn't get tweened at all, not even changed =/.
PS: I already checked, the code is being called.
Thanks in advance,
Allan
I've looked around but couldn't find anyone with this issue so maybe I am doing something wrong. My game uses NGUI for practically everything UI-wise, and I was until recently using HOTween to animate my buttons colors and multiple properties really. It was working nicely but I decided to upgrade to DOTween as its better, accordingly to you =P.
However, apparently it is not being able to tween the color of NGUI Widgets for some reason. Here is the call I am using:
_tweenColor = DOTween.To(() => _childWidgets.color, x => _childWidgets.color = x, _pressedColor , _currentAnimationDuration).SetAs(_tweenParams);
And the _tweenParams in this occasion:
_tweenParams.SetEase (Ease.InOutSine).SetUpdate(true);
In short, its just not working =/ Meanwhile, this other call is working as expected:
_tweenHighlight = DOTween.To(() => HighlightSprite.alpha, x => HighlightSprite.alpha = x, 1f, _currentAnimationDuration).SetAs(_tweenParams);
So... any idea on what might be causing this issue? The color doesn't get tweened at all, not even changed =/.
PS: I already checked, the code is being called.
Thanks in advance,
Allan