Author Topic: [solved]Dynamic Font dissapears  (Read 2016 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
[solved]Dynamic Font dissapears
« on: April 11, 2013, 03:07:23 PM »
Hey, I'm having issues while I'm rotating a panel in 180°. When it's in 90° the text in the entire screen disappear and appears immediately. Someone knows which could be the trouble?

This is the store screen, and it's like the Clash of Clans one, so when you touch it it's flip in x-axis and shows a description. If you touch again it's flip again and show the icon and the title.
The "funny" part it's this hide&show issue just happens the first time, when seeing the description, but not when you came back.

I'm using iTween.RotateAdd (y: 180°) .

any help would be appreciated!

thanks!

PS: I'm working with and old NGUI version (2.2.7c), I don't know if could be that. I'm waiting for 2.6.0 (built-in dynamic fonts) to update.
« Last Edit: April 12, 2013, 07:18:00 PM by Nicki »

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Dynamic Font dissapears
« Reply #1 on: April 11, 2013, 07:20:38 PM »
It sounds like the classic two material problem.

When you are rotating the screen, the widgets in the other material will be closer to the camera for a little while, in that while the font is drawn beneath. I don't have a good solution to it though.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Dynamic Font dissapears
« Reply #2 on: April 11, 2013, 09:18:03 PM »
yeah, sorry second post with the same issue. I create a parent Panel and it works, I also move some text in the Z axis and now it's working.