- Home /
Question by
benjiboy12 · Dec 10, 2014 at 03:46 PM ·
c#uianchor
How to change Anchor Position on a game Object via Script
Hello,
I'm creating a list of objects that will be displayed on the canvas, but I have a problem figuring out how to change the anchored position of the new objects, when I parent them to the roster list their anchors spread to the parent objects sides, also when more items are created the list expands to fit them, the problem is then that the item expands its ratio because its parent is expanding its height, how can I solve this problem.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613173713im_/https://answers.unity.com/themes/thub/images/avi.jpg)