Hi,
I'm was wondering how to update the content size of a ScrollRect component ?
Let's say I have a Panel which is assigned as the RectTransform Content of a ScrollRect component - by default the scrolling area is based on the Content RectTransform size - But the size it's not related to the children GameObject of the Panel. So if I add Button programmatically into my Panel, its RectTransform does not change, so tI will never see those Buttons.
To make it simple, I try to simulate a list...
ScrollRect : how to dynamically increase the content size ?
I'm was wondering how to update the content size of a ScrollRect component ?
Let's say I have a Panel which is assigned as the RectTransform Content of a ScrollRect component - by default the scrolling area is based on the Content RectTransform size - But the size it's not related to the children GameObject of the Panel. So if I add Button programmatically into my Panel, its RectTransform does not change, so tI will never see those Buttons.
To make it simple, I try to simulate a list...
ScrollRect : how to dynamically increase the content size ?