Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

ScrollRect : how to dynamically increase the content size ?

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>