Author Topic: Is it OK to nest UIAnchors?  (Read 3409 times)

storm33229

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 44
    • View Profile
Is it OK to nest UIAnchors?
« on: May 23, 2013, 08:55:29 PM »
Is it OK to nest anchors? So that, for instance, my "Next" button and conversation window can be siblings of one game object, but be anchored differently?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Is it OK to nest UIAnchors?
« Reply #1 on: May 23, 2013, 08:58:59 PM »
You can do it, but it's generally better not to. What I generally do is this:

Center
- Panel 1
- Panel 2

TopLeft
- Panel 1
- Panel 2

..etc

storm33229

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 44
    • View Profile
Re: Is it OK to nest UIAnchors?
« Reply #2 on: May 23, 2013, 10:59:49 PM »
You can do it, but it's generally better not to. What I generally do is this:

Center
- Panel 1
- Panel 2

TopLeft
- Panel 1
- Panel 2

..etc

Bleh. I figured. It would be nice if I could parent these to each other and anchor them relative to bounds  ;D