
Adds auto-size (best fit) to UI Toolkit Text Elements.Links: ManualIt uses manipulators to add the functionality in a non-destructive way so you can add/remove it easily on any TextElement.Features✔️ Tested in Unity 2022 and Unity 6✔️ Adds an auto-size option for text elements in the UI Builder (can also be added via USS classes)✔️ Support margins and paddingUsageEither you use the UI Builder interface to enable the auto size or you add the "text-auto-size" USS class to your text elements to enable auto sizing. HINT: You can set the min/max size with text-auto-size-min-{SIZE}.SupportSince this is a free asset there is NO FREE SUPPORT. The full source is included so you can make changes if you want to. Though please notice it's NOT open source. Please do not upload it to GitHub.Why publish it for free?Why no support?I have been (and am) making a lot of UI Toolkit tools (see). This one is just a side project I needed and I figured it is not big enough to charge money for (may change). I hope you understand that I can not promise any support for a free asset (gotta pay my bills). I also think Unity should (and will) add this in the future since it is sorely needed. This just exists to bridge the gap between now and whenever Unity adds it.Feel free to report any bugs. If I can find the time in between other projects I will do my best to address them (no promises though).Let's hope Unity will add this soon.If you can please rate it so Unity notices that this is indeed a very helpful feature.Thank you for understanding and enjoy this free tool :-)If you want to support me then please check out my other assets on the store ❤️.