Hi Tony
I'm sure this has been discussed before but I haven't been able to find it.
What I'm trying to do is have a Image box behind my dialogue text that scales based on the volume of text. So if there is a lot of text the box increases in size to cover the whole area but if it is just a single word the image size is small.
Thank you,
Nathan
Text Box Adjust to Text Amount
Re: Text Box Adjust to Text Amount
Hi Nathan,
Try adding a Content Size Fitter to it. Set the Vertical and Horizontal dropdowns to Preferred.
Try adding a Content Size Fitter to it. Set the Vertical and Horizontal dropdowns to Preferred.
Re: Text Box Adjust to Text Amount
Perfect, thanks Tony!
Also, incase anyone else would like the, here is a useful page: https://docs.unity3d.com/Packages/com.u ... tSize.html
Also, incase anyone else would like the, here is a useful page: https://docs.unity3d.com/Packages/com.u ... tSize.html
Re: Text Box Adjust to Text Amount
Glad to help!