Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Naked_Chicken

Pages: [1]
1
The NGUI elements in my scene are getting some sort of weird artifacting. I'm not even sure what to call it but I can't figure out what's causing it.

The artifacting moves over time as you can see in the attachments. It seems to rotate. But it only happens to the NGUI elements.

This only seems to happen on iPhone5 so far. It does not do it while playing in the editor at iPhone 5 resolution though.
Anyone have any ideas?

Edit:
As far as I can tell, this has something to do with the fact that I'm changing the orthographic size of my camera.

2
NGUI 3 Support / 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.

Pages: [1]