Hey!
So basically I am making an text input with a rectangle scroll (Image which holds the rectScroll itself + a child Text Input which is scrollable. However, what I haven’t figured out yet is how you can resize the UITexts Bottom, so if a user types in a very long text - I want him to ble able to scroll it all, instead of having either just lots of blank text to scroll, or not be able to scroll all of his text.
I have tried to use the GetComponent().rectTransform.sizeDelta = new Vector2(x,y); This seems to expand the Text in height both ways. And as you know, I have already set the scroll-content - so what really happens then is that this overlaps other content and makes it look rather weird. I have included to pictures to demonstrate.
This is what I want;
This is what happens;