Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Nested Content Size Fitter - How to go about simulating such structure

$
0
0
Hello,
I want to implement a scrollable comment list where it has a show more button. So this is my current structure:

- ScrollView
- Viewport
- Content (contains ContentSizeFitter)
- Comment prefab 1
- Comment prefab 2
...​

So all of the comment prefab has, per say, a size of 200 when created. But if the text is longer than the text area and is clipped, when the user clicks the text box, I want the text box to expand and show all text....

Nested Content Size Fitter - How to go about simulating such structure

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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