- Home /
Question by
ChironeV · May 31, 2015 at 08:44 PM ·
user interfacerelativeanchorscreen sizeplacement
Keep UI placed below other UI always
Hi,
I am trying to place some UI down onto a panel. There is a text field, and below it is a button. I want the button to always be below the text field by 8 pixels. When the screen's aspect ratio changes the button sometimes goes on top of the text or far below it. I've played with the anchor points but it seems to only affect the position of the button in the button's parent.
I know I can do this in code but can it be done in the editor? Does this make sense? I've tried looking for the answer but it seems either no one has ever come across this issue or I'm not searching the right thing or it really is impossible to layout UI relative to other UI elements outside of code...
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613200505im_/https://answers.unity.com/themes/thub/images/avi.jpg)