Author Topic: Text Issue with Example 8 - Using NGUIFree  (Read 1564 times)

DaveGeek

  • Guest
Text Issue with Example 8 - Using NGUIFree
« on: July 14, 2013, 05:02:10 PM »
I was evaluating the free version of NGUI to see if it would work for my project.
I was specifically looking at it to handle the scrolling help section which has a lot of text.

All of the panel items disappear when I added 40 items each containing a lot of text.
The outlines of everything is still there, just the content disappears.


NOTE: Please let me know if this does not occur with the current/commercial version of NGUI.
It is easy to duplicate.  Here are my exact steps:

Create a new project and import the free version of NGUI.
Open up Example 8 - Scroll View (Camera)
In the Inspector for View UI -> Anchor -> Offset, change the Columns to 1.
Under View UI -> Anchor -> Offset ->   remove all of the Items EXCEPT one.
Delete the second UILabel item (the green 'New!' text), the UISlicedSprite and the UISprite.

Change the text in the (now) second UILabel from "12,345 Gold" to (without the quotes):
"Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text "

Change the Line Width of this UILabel to 650.
Adjust the position of this UILabel to fit underneath the other one and within the window.
Duplicate the Item 39 more times, watching the Game View as you do this.  You will see when the text will disappear. Now, if you start deleting text within one of UILabels, at some point you will see the text reappear in the Game View.

I can send you my project zipped up if you like, please let me know.

I'm not sure if this is a bug or a limitation of NGUI or Unity. 
If it is either a bug or limitation, please let me know if there is a workaround because I believe that NGUI will be a great tool for my project and I will buy it but only if I can get this part working.

Thank you,
Dave


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Text Issue with Example 8 - Using NGUIFree
« Reply #1 on: July 14, 2013, 07:14:04 PM »
Free version of NGUI doesn't come with support. Full version does, and there are several methods of clipping / scaling the label's text content if the content doesn't fit.

DaveGeek

  • Guest
Re: Text Issue with Example 8 - Using NGUIFree
« Reply #2 on: July 15, 2013, 06:11:52 AM »
I understand that the free version of NGUI doesn't come with support but I was just trying to make you aware of a bug.  I was not asking for assistance in figuring out how to use NGUI, I can do that myself.
I just changed a few minor things in the demo and it broke. I just thought you would want to know.

Bottom line: If it's a bug with NGUI, you need to fix it.  If it's a limitation, you need to let people know.

Thanks,

Dave


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Text Issue with Example 8 - Using NGUIFree
« Reply #3 on: July 15, 2013, 07:00:36 AM »
And I do appreciate the bug report, but I'd prefer the bug reports related to something I can fix and something that isn't 1.5 years out of date. :)