Author Topic: Anchor bottom jump - a solution? maybe  (Read 1673 times)

reformy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Anchor bottom jump - a solution? maybe
« on: October 14, 2012, 07:20:57 AM »
Hi
I have a problem with my mobile unity project: a button anchored to the bottom of the screen "jumps" in the first frame from the center to the bottom. I've been told here updating to latest version (2.2.3) will solve the problem. It didn't.
But - I experimented on a new project and realize:
- Building a scene with anchored button using 2.2.2 - fails
- updating NGUI to 2.2.3 - still fails
- creating a new scene from scratch using 2.2.3 - SUCCESS!

So - this is the solution. Just one question remain:
I don't want to build all my scenes again... Can someone point me to the right way? Should I simply update NGUI to 2.2.3, create a new UI, and move the whole tree from the old UI gameobject to the new? Should I keep the camera too?
Or - do I need to build it all again...

Thanks,
yair

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Anchor bottom jump - a solution? maybe
« Reply #1 on: October 14, 2012, 07:41:28 AM »
It might be the order of script execution conflicting with some other script you have. Try removing the UIAnchor from your old UI, saving the scene, then adding a new UIAnchor in the same spot.