I've just updated from 2.1.6 to 2.3.3 and my tweens are broken. Whenever I attempt to use TweenPosition with a duration of 0 the object gets set to (0, 0, 0).
I started a blank project, downloaded a clean version of NGUI and it still doesn't work. If I have a duration of anything other than 0 it works. I've tried investigating it myself but I haven't had much luck figuring out what's different in the working version vs the broken version.
The only thing odd I have seen is that the OnUpdate function in TweenPosition doesn't seem to work for 0 duration. The problem with the code (below) is that the to and from positions are never set until after the tween has been created so cachedTransform will always be (0, 0, 0) for a tween with 0 duration.
override protected void OnUpdate (float factor, bool isFinished) { cachedTransform.localPosition = from * (1f - factor) + to * factor; }
Any ideas?
edit: Here is my super simple example script that I'm using in the empty project as reference
Vector3 newPos = go.transform.localPosition;
if (toggle) newPos.y -= 300.0f;
else newPos.y += 300.0f;
TweenPosition.Begin(go, 0f, newPos);
edit2: I should mention I'm on Unity beta 12. If no one else has this issue I'm pointing the finger straight at Unity.