Author Topic: Grid problem and label font problem  (Read 3660 times)

kretin

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 29
    • View Profile
Grid problem and label font problem
« on: May 25, 2014, 08:55:51 PM »
I have a couple of problems that I haven't found a cure for.

I'm using UIGrid to display a number of prefabs (cards), either 3x2 or 4x2 or 4x3. Sometimes the first prefab doesn't get put into the right place, but stays in the middle, but only sometimes. Any ideas what I should be looking for to avoid that happening?

Secondly, I'm testing different fonts, and having a problem with the NGUI font "sticking" in a label.
1. I choose a dynamic font
2. Go back to an NGUI font
3. Choose a dynamic font
4. Choose a different object, and then go back to the label and the font is back to the NGUI one.
5. Choose a dynamic font again.
6. Choose a different object, and then go back to the label and the font is back to the NGUI one.

Any ideas?

PS I haven't forgotten about the sample scene for the full screen button issue. I'll get onto that in the next day or so.

kretin

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 29
    • View Profile
Re: Grid problem and label font problem
« Reply #1 on: May 25, 2014, 09:12:06 PM »
I realize that the font issue is when it is or has been a prefab, so probably related to the sprite reverting serializing issue you've discussed in another thread.

kretin

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 29
    • View Profile
Re: Grid problem and label font problem
« Reply #2 on: May 25, 2014, 11:40:46 PM »
For the font reverting I figured out by keeping a copy in the scene I can change that and hit "Apply" and it sticks.

I haven't solved the grid problem though.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Grid problem and label font problem
« Reply #3 on: May 26, 2014, 10:45:43 PM »
Not sure what would cause one element to not get reposition. The grid repositions children, so my guess is that there might be something else that's conflicting with it, such as some tween that changes the position.

kretin

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 29
    • View Profile
Re: Grid problem and label font problem
« Reply #4 on: May 27, 2014, 01:58:39 AM »
Thank you so much.  It threw me because it was so infrequent.

Your reply made me realize I was setting the vector3 position instead of just the z value.