Text cuts away from the bottom
-
- Posts: 11
- Joined: Fri Feb 17, 2023 5:49 am
Text cuts away from the bottom
Okay, I've got this issue where the last line of the text cuts away when the dialogue reaches the bottom of the screen. I've been using the Scrolling Dialogue UI as a base, and this issue appeared out of nowhere today. I don't have any idea what caused this. I tried using the different alignment options available in the Subtitle Text (TMP) gameobject, which do align the text right, but it makes the Typewriter effect jittery. Any help would be greatly appreciated, I have no idea where to look.
- Attachments
-
- DialogueSystem.png (317.75 KiB) Viewed 298 times
Re: Text cuts away from the bottom
Hi,
If you manually scroll the area, does the text show up? Or do you think the scroll content area is too short to accommodate the text? You can inspect the scroll content area to see if its Rect Transform bounds are cutting off that text. If so, inspect the TextMeshProUGUI component and try adding some padding at the bottom.
If you manually scroll the area, does the text show up? Or do you think the scroll content area is too short to accommodate the text? You can inspect the scroll content area to see if its Rect Transform bounds are cutting off that text. If so, inspect the TextMeshProUGUI component and try adding some padding at the bottom.
-
- Posts: 11
- Joined: Fri Feb 17, 2023 5:49 am
Re: Text cuts away from the bottom
I was able to figure this out by removing the Dialogue Manager from the scene and adding it again, so problem solved, thanks for your help
Re: Text cuts away from the bottom
When the problem occurs while playing in the editor, pause the game. Inspect the scroll content area. Are the Rect Transform bounds too short to accommodate the text? Or does it look like something else is going on?
-
- Posts: 11
- Joined: Fri Feb 17, 2023 5:49 am
Re: Text cuts away from the bottom
The rect transform bounds are - as far as I can tell - normal. This behaviour happens only when Warm Up Conversation Controller is set to "extra".
- Attachments
-
- ScrollContent.png (167.8 KiB) Viewed 275 times
Re: Text cuts away from the bottom
Are you starting the conversation when the scene starts?
Any chance you could send a reproduction project to tony (at) pixelcrushers.com?
Any chance you could send a reproduction project to tony (at) pixelcrushers.com?
Re: Text cuts away from the bottom
Thanks for sending the reproduction project. We resolved this in email, but I'll record the solution here so it's easy to find in the future.
Solution: Tick the Subtitle Panel Info's Standard UI Subtitle Panel > Clear Text On Conversation Start checkbox. The Extra setting leaves a blank space in the subtitle text. (I'll see if I can address that in the next DS update.) TextMesh Pro seems to compute its textBounds height incorrectly when there's a blank line at the beginning.
Solution: Tick the Subtitle Panel Info's Standard UI Subtitle Panel > Clear Text On Conversation Start checkbox. The Extra setting leaves a blank space in the subtitle text. (I'll see if I can address that in the next DS update.) TextMesh Pro seems to compute its textBounds height incorrectly when there's a blank line at the beginning.