Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Naked_Chicken on January 30, 2013, 12:48:10 PM

Title: TweenOrthoSize is broken
Post by: Naked_Chicken on January 30, 2013, 12:48:10 PM
So I just noticed that the TweenOrthoSize is broken. It's trying to alter the camera's fov, rather than its ortho size:

  1. override protected void OnUpdate (float factor, bool isFinished)
  2.         {
  3.                 //This is altering the wrong camera property
  4.                 //cachedCamera.fov = from * (1f - factor) + to * factor;
  5.                
  6.                 //This is what it should be doing
  7.                 cachedCamera.orthographicSize = from * (1f - factor) + to * factor;
  8.         }

I'm guessing this isn't one people use a lot since this hasn't been caught before, but just in case, I thought I'd throw it up here.
Title: Re: TweenOrthoSize is broken
Post by: ArenMook on January 30, 2013, 08:28:45 PM
It'll be fixed in the next version, thanks.