com.unity.uiextensions icon indicating copy to clipboard operation
com.unity.uiextensions copied to clipboard

A button or control component that can Bake the "Best Fit" option

Open SimonDarksideJ opened this issue 2 years ago • 0 comments

Issue created by @SimonDarksideJ as Bitbucket Issue #​7 on 2015.02.05 22:18. One of the known performance problems with the 4.6 UI is "Best Fit" - when checked, it sometimes has to redo lots of things, rebuild font caches, calculate the best size anytime the rect changes, etc. Sometimes, you need Best Fit, and that's an acceptable tradeoff. But we all know that 99% of the time you just click that button because you're in a hurry to build your UI and don't want to fiddle with exact text sizes.

A solution: A Best Fit button that determines the proper text size in editor time, but never changes the size during runtime. Best of both worlds. It could be a checkbox that, in editor mode, keeps adjusting the text, but locks it in the instant you hit 'play'.

SimonDarksideJ avatar Apr 25 '22 08:04 SimonDarksideJ