Hello Guest

Author Topic: tk2dCameraAnchor odd behavior in-editor (Unity 4.2, TK2D 2.10)  (Read 3929 times)

JFBillingsley

  • Newbie
  • *
  • Posts: 18
    • View Profile
For some strange reason the camera pixel size is often reported as 640x480, regardless of what size the camera actually is. This causes the anchors to move to odd positions, especially when switching between the game and scene views. I was able to make it work a little better by commenting out the UpdateTransform call inside tk2dCameraAnchor.LateUpdate, but..

Let me guess, this is something silly that Unity does that there's no way to work around, right? ;)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dCameraAnchor odd behavior in-editor (Unity 4.2, TK2D 2.10)
« Reply #1 on: August 22, 2013, 10:04:11 am »
Its one of those lovely things in Unity. Sometimes it doesn't initialize the game window until after a few frames - so the camera doesn't know what resolution you're running at...

JFBillingsley

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: tk2dCameraAnchor odd behavior in-editor (Unity 4.2, TK2D 2.10)
« Reply #2 on: August 22, 2013, 10:05:57 am »
I thought as much. Thanks though, good to know it's not just me having weird issues, haha.