Author Topic: TweenOrthoSize is broken  (Read 1611 times)

Naked_Chicken

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
TweenOrthoSize is broken
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TweenOrthoSize is broken
« Reply #1 on: January 30, 2013, 08:28:45 PM »
It'll be fixed in the next version, thanks.