Author Topic: font characters in scrollview become gray-cubes while reactivating  (Read 3999 times)

swswggg

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
using current lastest version.

i am using a dynamic font to add UILabels in a scrollview.
at beginning, a scene loaded and everything works fine.
as shown pic named 1.png
the '60' is an UILabel in scrollview and the '%' is a UILabel outside of scrollview. both use the same dynamic font.

once i deactivated the gameobject tree with ngui,  said make an user to play game for 1~2 minutes, then come back to reactivate them again.
the '60' UILabel is gray-cubed as saw in pic name 2.png
at the same time, the  '%'  still worked fine.

it happened in both ios and android build, but to pc standalone build, never happened.
« Last Edit: January 02, 2014, 03:54:04 AM by swswggg »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: font characters in scrollview become gray-cubes while reactivating
« Reply #1 on: January 02, 2014, 11:34:29 AM »
Interesting. And I presume this is just one label for both the digits and the percent sign, right?

swswggg

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: font characters in scrollview become gray-cubes while reactivating
« Reply #2 on: January 02, 2014, 08:36:27 PM »
thank you for reply.

no, there is a label for digits located in uiroot->scrollview->grid->digitlabel. and another '%' label located in uiroot->unitsign.
uiroot will be deactivated(SetActive(false)) while entering game.  then will be activated after exiting game.
« Last Edit: January 02, 2014, 11:32:00 PM by swswggg »

swswggg

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: font characters in scrollview become gray-cubes while reactivating
« Reply #3 on: January 03, 2014, 03:06:26 AM »
hi
i also tried to reload them into a scene (first load an empty scene to clear all up then load a real scene), but the same problem happened.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: font characters in scrollview become gray-cubes while reactivating
« Reply #4 on: January 03, 2014, 03:55:30 AM »
Is the percent sign label and the "60" label using the same font, with the same size and style?

swswggg

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: font characters in scrollview become gray-cubes while reactivating
« Reply #5 on: January 03, 2014, 04:45:40 AM »
yes, same font, same size(50), same style(normal).
i also adjusted overflow(shrinkContent), keep crisp(OnDesktop), gradient(unchecked), Effect(none) to make labels the same, but didn't work.

swswggg

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: font characters in scrollview become gray-cubes while reactivating
« Reply #6 on: January 03, 2014, 05:54:02 AM »
i added an additional uitexture gameobject behind the digit label and the uitexture also disappeared after reactivating.
i think maybe this problem is nothing to do with font but the scrollview is.