Can somebody explain how to use TMPro with ScrollRect overflow mode?
When using a Unity ScrollRect component the TMPro ScrollRect overflow mode isn’t necessary so I wonder what is its purpose otherwise? Is there any use case for it when not using a Unity ScrollRect component and if yes, how is it used?
The ScrollRect overflow mode isn’t working as intended and should be ignored (until I get around to tweaking it). This overflow mode is not needed at all when using a ScrollRect component.
I suggest taking a look at Example 18 - ScrollRect & Masking Layout included in the TMP Examples & Extras.
i have a side panel (not much width to it since its side panel) and i want to show single line text on it. so when text get a bit long i’d like to make it scroll. for example like auto scroll in music player where the title scrolls if its too long to fit.
I feel like having the ability to have a one click solution that allows a textbox to cleanly resize to fit expanding content with a scrollbar is a fairly common use case?
Obviously you can make it work with other stuff, it’s just a little odd that TextMeshPro supported this at one point but now there’s just a useless option for a common use case that doesn’t work
I have not looked at this in a while. Since I am now working on a new preview release (ie. adding new stuff) this might be the time to revisit this.
Can you all please provide some insight on how you would envision this one click button to work / do? Just want to make sure I understand correctly and implement as desired
I’m not one of the original posters here, but the way I would imagine this working, would be the details for the (if required) scrollbar appearing below the dropdown menu.
The scrollbar itself ingame would only appear when the text runs out of room, and then would function the same as a regular ScrollRect (with masking? maybe as a checkbox?)
For example, in the attached, I have a text field that I aim to have a small enough amount of text that overflow shouldn’t be an issue… but if it did occur, I’d like it to overflow via a scrollbar, rather than having to lose details.
I’m afraid that having to specify a toolbar would be far from a ‘one-click’ solution.
The only thing which would be a ‘one-click’ solution would be to scroll the text.
We would still have to specify some parameters but it would be far faster than configuring a whole scrollbar:
is it a left-to-right or right-to-left scrolling?
time to wait before scrolling (so the player has some time to read the beginning)
scrolling speed
time to wait when the end is reached (so the player has some time to read the end)
Is it ‘circular’ or not (I mean, when the end is reached we can continue to scroll displaying the start of the text after the end of the text, or just wait the given time and start again the scrolling)
We could also have the possibility to scroll using the mousewheel or touch scrolling, without displaying any scrollbar.
I’m afraid that this solution is not universal, but it has the advantage of being very easy to setup.
There’s only the scrolling speed to specify.
as i tried to explain earlier. one use-case that i ran into was that i was trying to show line of text in side panel and the text wouldnt fit. it would be cool if there was option for auto-scroll. like the text automatically scrolls horizontally as it does in many music players.
If Overflow is set to Scroll Rect, only text in the bounds of the text box would be visible. If there is overflow text, you could click and drag the text to scroll. Would be super helpful for dynamically sized text boxes which are a pain to use with the Scroll View
@Stephan_B If the feature doesn’t work, please remove it. You can always add it back later. Right now it just creates confusion. TMP is not a Preview or Experimental package and should not be displaying non-functional features.
I’m baffled this issue still exists, and the option hasn’t been removed despite being non functional. @slowDrag0n and @OneManEscapePlan have pointed out the issue quite well.