- Home /
Content size fitter alignment issue
I am applying Horizontal Layout Group and Content Size Fitter to parent object which has a text object as a child. The width of the parent is increasing according to the text width.
Problem : The size of the parent is increasing from center in both the directions. I need the size to increase only towards the right (The left edge of the parent should not move) Is there a way to do this?
issue.jpg
(47.4 kB)
Comment
Best Answer
Answer by Aims_ · Feb 06, 2018 at 10:54 AM
Fixed it. I figured that the Anchors and Pivot are two different things. So as suggested in lots of the posts, assigning proper Pivot position gave me the result I wanted.
solution.jpg
(15.7 kB)
Thank you so much, I was struggling with a similar problem for hours and your post finally saved me :)