Author Topic: Anchor reposition takes some frames, why?  (Read 1511 times)

marcg11

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Anchor reposition takes some frames, why?
« on: July 14, 2014, 04:09:15 AM »
Hello, I have some sprites and labels which have the new NGUI anchor system (unified, advanced). The thing is If I change some widget height or width it takes NGUI some frames to reposition all the widgets. Why?

Is there a way to tell NGUI to recalculate this in a sync way?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Anchor reposition takes some frames, why?
« Reply #1 on: July 15, 2014, 12:14:11 AM »
Call UpdateAnchors() if you want it to be immediate.

marcg11

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Anchor reposition takes some frames, why?
« Reply #2 on: July 15, 2014, 02:20:22 AM »
It appears not to be working, I tried calling it on the parent panel, and all its widgets but it's not immediately.