Unity Quick Tips - How to Dynamically RESIZE Text UI @TheMessyCoder
Unity Quick Tips - How to Dynamically RESIZE Text UI  @TheMessyCoder
Uploaded March 2022 | Updated November 2026, 3 hours ago
Unity Quick Tips - How to Dynamically RESIZE Text UI
► Twitch = twitch.tv/theMessyCoder
► Unity3D asset store = bit.ly/themessystore
► Discord = discord.gg/CXsGyQU

Grab the sample code here: pastebin.com/kkrWh8w2

Thanks to @Sam3DX I can now do this with native Unity UI features :D
You need to add a Vertical layout group to the parent object and set the following values:
Control Child Size: Width + Height
Child Force Expand: Width

Add a Content Size Fitter to the same parent object with values:
Horizontal Fit : Unconstrained
Vertical Fit: Preferred Size



Shoutout to itsOiK ► twitch.tv/itsoik

---------------------------------------------

Shameless plug, click my links for the assets to support the channel. The Unity Affiliate program helps drive a little cash back in to the Messy wagon and enables me to buy more assets to review, and also to put the heating on.

Thanks for your love and support, and happy deving!

► Subscribe on YouTube : bit.ly/messytube
► Follow Me on Twitter : twitter.com/theMessyCoder

Come and watch me on my live stream over at Twitch, where every Fridays & Saturdays I broadcast playing, developing and doing live game dev interviews.
You can also learn how to make your own games!

► twitch.tv/theMessyCoder

If you Sub on Twitch you get access to my tutorial code on the discord, just link your twitch and discord, come and say hi :)

► Discord = discord.gg/CXsGyQU

---------------------------------------------------------------------

If you want to support the channel, please feel free to pop over to twitch and click on that subscribe button :) for the price of a fancy coffee you can help the channel grow

► bit.ly/messysub


---------------------------------------------------------------------

If you are interested in other Survival asset kits then check out my Ultimate Survival review & tutorials: goo.gl/WWEsZb

---------------------------------------------------------------------

► Twitch = twitch.tv/themessycoder
► Twitter = twitter.com/theMessyCoder
► Facebook = facebook.com/Themessycoder
► Discord = discord.gg/CXsGyQU

► Unity3D asset store = bit.ly/themessystore


-------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------



Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!
Unity Quick Tips - How to Dynamically RESIZE Text UIUnity Asset Reviews - SciFi Space BaseLive Dev Interviews - DE Environment - 1000s of Shaders for UnityUnity Interviews - GeNa Pro Launch Special - Procedural WorldsUnity Asset Reviews - Zombie Collection from Knife EntertainmentUnity Asset Reviews - Realistic Car ControllerBIG NEWS Saturday stream announcementUnity Asset Reviews - Velkin Labs Horror Environment Pack 1Live Dev Interviews - Tidal Flask StudiosUnity Asset Reviews - RPG Poly Pack Ancient VillageLive Dev Interviews - Odin with Tor from SirenixLive Dev Interview - OliVR - Oliver Pavicevic
The Messy Coder |

Unity Quick Tips - How to Dynamically RESIZE Text UI

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER