Author Topic: UIAnchor delay when set to a UIWidget that uses another UIAnchor  (Read 1535 times)

missingno

  • Guest
I'm having an issue when using UIAnchors to have a "floating" UI. All my widgets that are anchors to the camera are in place properly when I load my panel however any widget anchored to another widget that uses an anchor are not in place and i see them change position after some delay.

for example I have the following stucture:

UIPanel
-UIButton (Anchored to the top right of the camera)
-UIButton2 (Anchored to the bottom right of UIButton)
-UIButton3 (Anchored to the bottom of UIButton2)

UIButton is in place properly when loading my game, however I see both UIButton2 and UIButton3 on screen and then jump off screen to where they should have started.

I'm having this issue in several parts of my game and I need to either figure out how to fix this (assuming its a problem and not expected behaviour) or figure out how to anchor everything to the camera (huge pain in the ass to be able to support all iOS devices).

Thanks for the help.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIAnchor delay when set to a UIWidget that uses another UIAnchor
« Reply #1 on: June 07, 2013, 08:11:33 PM »
You should be using a UIGrid or a UITable to position your buttons here, not multiple anchors.