ex-makina / marklight

MarkLight is a presentation framework for Unity that allows you to create scene elements in a language similar to HTML.
MIT License
75 stars 35 forks source link

[How To] dynamically adjust the content size of a scrollable panel #13

Open lukasIO opened 6 years ago

lukasIO commented 6 years ago

I am working with MarkLight and TextMeshPro. I was wondering how would I automatically adjust the size of the TextMeshProLabel (within a Panel) depending on the content, so that it always only scrolls within the boundaries of the actual text? In vanilla Unity I would add a content-size-fitter and a layout group, but that doesn't seem to work with marklight...