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

Pages: [1] 2
1
NGUI 3 Support / Re: iPhoneX safe area support
« on: November 04, 2017, 05:21:04 PM »
I've been playing around with this and discovered what seems to be a good alternative: changing the camera's viewport.

You can get Unity's sample safe area plugin here: https://bitbucket.org/p12tic/iossafeareasplugin

Modify it to instead set the NGUI camera's pixelRect to exactly the safe area rect, and voila - exactly correct letter boxing. It's working out great in my tests and I'm putting it into my game next.

2
I just forwarded you the email. The attachment is called LineWrapBug.zip. If you're not receiving my emails, I can try dropbox or something.

3
I sent the project to support@tasharen.com on April 28th. Subject line: "UILabel line wrapping adding an extra space for formatting symbols - sample project"

4
Well, no more responses but I needed this to be fixed, so I investigated some more. I think the conditional given above isn't quite right. Changing it to the following fixed the problem so far:

  1. while (start < text.Length && IsSpace(text[start])) ++start;

5
NGUI 3 Support / Re: UILabel text wrap + BBCodes
« on: May 07, 2017, 11:00:24 PM »
Perhaps this is related to the bug I reported here:
http://www.tasharen.com/forum/index.php?topic=15230.0

6
Yes, it's NGUI 3.11.3. I'm on Unity 5.6.0p1.

I can create a new Unity project with NGUI 3.11.3, import the scene I posted, and the problem is right there without making any changes.

Adjusting the size of the label actually lets you see the boundary where the bug is happening - at width 192-202 it happens, outside of that range it doesn't.

I'll send you a zip of the complete project.

7
Hmm perhaps the bug happens only when Shrink Content actually shrinks the text. If I play around with the font size I can see that happening.

8
Ok, here is my test scene exhibiting the problem. Let me know if you have trouble opening it and I could email the whole project instead.


9
Looks like the bug is fixed if Overflow is set to Clamp Content - but it's still there with Shrink Content (which I am using).

10
Hi Aren, the same problem exists with NGUI 3.11.3.

11
Sure thing, I'll watch out for that!

12
I added that line in, to no effect. It never enters the loop from what I can see.

13
Hi Aren, thanks for the response! Soft-wrapped text should discard spaces at the new line, and this works properly in other cases in NGUI. The bug here is if the closing [/i] is where it decides to insert the new line character. My text does not have a hard new line character; if it did, I would agree it should render the space, but it does not.

Here is another screenshot showing NGUI doing the right thing in other cases, but the wrong thing in this case. Making the space italicized is perhaps a workaround, but you can't always control what text your label is showing. This was working correctly before and is a new bug.


14
When a UILabel automatically wraps and a line ends with [/i] or similar, an extra space is rendered at the start of the new line. This was introduced sometime since NGUI 3.9. Screenshot is attached, thanks!

NGUI 3.11.2, Unity 5.5.2f1.


15
NGUI 3 Support / Re: Screen flickering on examples
« on: March 15, 2017, 04:19:56 PM »
I had the same retina scale issue and it went away when I updated to Unity 5.5.2.

Pages: [1] 2