Author Topic: Parenting UIAnchors under other UIAnchors  (Read 2651 times)

sirival

  • Guest
Parenting UIAnchors under other UIAnchors
« on: February 20, 2013, 08:02:28 AM »
Hello,

As per the subject, is it wrong to parent a UIAnchor under another UIAnchor?

We have a prefab that contains some ui elements anchored on Top and some other child elements anchored on the Bottom. This makes the bottom anchor which is parented under the Top anchor, to slowly move towards the negative z axis...

The reason we have this structure was that it is convenient for us, but if it's wrong we can figure out another way to do this.


sirival

  • Guest
Re: Parenting UIAnchors under other UIAnchors
« Reply #1 on: February 20, 2013, 08:29:50 AM »
Nevermind,

The anchor transform had a localposition.z != 0 which made it move on the z axis at runtime. If the local z is 0 it does not move.