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 - peter

Pages: [1]
1
NGUI 3 Support / Re: Bug report: Crash on iOS when opening native view
« on: March 13, 2014, 08:14:57 AM »
http://www.tasharen.com/forum/index.php?topic=8545.0

Thanks. That works. Maybe this should be added in the next update of NGUI?

2
NGUI 3 Support / Re: Bug report: Crash on iOS when opening native view
« on: March 13, 2014, 04:31:09 AM »
A note:

We're using Prime31's plugins (version 2014-02-25) to open all the native views. It's possible that there's a problem with them that ruins the touches. Prime31's code does this when opening for example the Tweet Composer:

   // Show the tweet sheet
   UnityPause( true );
   [UnityGetGLViewController() presentModalViewController:tweetSheet animated:YES];

Can UnityPause( true ) be an issue here?

3
NGUI 3 Support / Bug report: Crash on iOS when opening native view
« on: March 13, 2014, 03:33:48 AM »
Hi,

We've fund a bug in NGUI 3.5.3 that wasn't present in older versions, and it doesn't seem to be fixed in 3.5.4.

The program will crash on iOS if you create an UIButton that opens a native iOS view in its OnClick() method. We've tested this with the native Tweet Composer, the Twitter SDK's login view and GameCenter's achievements view. Any view will probably do.

The crash happens in UICamera on line 1478:

  Notify(currentTouch.pressed, "OnClick", null);
  if (currentTouch.clickTime + 0.35f > time)

With this exception:

NullReferenceException: A null value was found where an object instance was required.
at UICamera.ProcessTouch (Boolean pressed, Boolean unpressed) [0x00559] in
Assets/NGUI/Scripts/UI/UICamera.cs:1478

The currentTouch is probably invalid after a new view has been opened. Is it set to null in OnApplicationPause() maybe?

Our current workaround is to remember the click and delay the opening of the view until the next frame when there're no touches left on screen.

We're using Unity 4.3.4 and tested this with XCode 5.0 and 5.1.

Email me if you want a small test project that reproduces the problem.

Any help is very much appreciated. Thanks.

4
NGUI 3 Support / Re: Font Scale per UILabel
« on: October 10, 2013, 11:54:56 PM »
I made a patch to UILabel that keeps the scale on text when you upgrade from NGUI 2 to NGUI 3. It worked well for our purposes. PM me if you're interested in the patch.

5
NGUI 3 Support / Re: Font Scale per UILabel
« on: October 10, 2013, 06:24:47 AM »
We have a very similar issue. We use a big (hi-res) dynamic font and have created several menus with labels that scales the font down. This was done in NGUI 2.7. When upgrading to NGUI 3 (deleting all old NGUI files and adding the NGUI 3 files) all of our labels become very large. They are scaled up to the actual font size.

I will try to modify the UpgradeFrom265() function in UILabel to make it keep the original size. We have too many menus to do the scaling manually.

6
NGUI 3 Support / UIImageButton pressed state in 2.6.1c
« on: May 07, 2013, 06:36:22 AM »
Just updated to 2.6.1c and noticed that the pressed state is never used in UIImageButton. If you press a button it uses the hoverSprite instead. It was easy to fix, but I thought it's worth reporting.

Pages: [1]