Get child UI button size
Hi, i'm trying to get the width of buttons I create at runtime as a child of a panel.
i tried this but i get (x:0.00, y:0.00, width:0.00, height:0.00)
for some reason the site is chopping parts of my code, I'm uploading an image.
alignment.jpg
(205.6 kB)
alignment.jpg
(23.3 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612045821im_/https://answers.unity.com/themes/thub/images/avi.jpg)