Author Topic: Position Label  (Read 2366 times)

Chamnana

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Position Label
« on: December 07, 2012, 03:56:12 AM »
Hello,
I have a little problem, and i don't know how to solve it.
I'm using ngui to create a label for the score, i've positioned it perfectly, and when i hit play it works 9/10 times.
The other one time, the label's position changes randomly, i can't find why.
I thought i could build the project and run it to see what happens: The label's position changed.

this is what appears when i hit play (what should happen)


This is what i have when i build and run it


does anyone have any idea how to fix it ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Position Label
« Reply #1 on: December 07, 2012, 06:59:57 AM »
Did you anchor it?

Chamnana

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: Position Label
« Reply #2 on: December 07, 2012, 09:23:40 AM »
Anchor it ? you mean does it have an anchor or is it something i do manualy ? (sorry still noob at this)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Position Label
« Reply #3 on: December 07, 2012, 10:56:26 AM »
Look at the first example that comes with NGUI. It won't stay attached to the corner unless you anchor it.

Chamnana

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: Position Label
« Reply #4 on: December 10, 2012, 06:46:53 AM »
Thank you! that was the problem :)