Masking overflow mode doesn't seem to work

I have a really long text field (a privacy policy…) that I have displayed using a scroll rect. I thought maybe it would be better performance to mask the outside of the rect using the “Masking” overflow mode, but I can’t get it to work. Maybe it wouldn’t improve performance but I thought I would give it a shot (performance isn’t terrible but I get a bit of a hiccup when I show the privacy policy).

Attached is a sample picture which basically shows how I have it setup and that it doesn’t work. I watched this video that shows how it should work:

I’m using Unity 2018.4.12 and TMP 1.4.1 from the Package Manager.

1 Like

Same question for me. Is masking broken because I’m using URP or does this require more setup?

I’m having the same issue here with the standard render pipeline. Does anyone know what is going on?

Same issue here. Masking overflow does not work on 2020.1.16 with TMP 3.0.6

Yup, here too: Unity 2020.3.16, TMP 3.0.6, URP 10.5.1

I am planning on reviewing the Masking and ScrollRect Overflow modes as soon as I have a chance as neither are really functional at this time.

Any updates on this @Stephan_B ?

1 Like

I have the same issue

Tested with 2021.2.9f1, and can confirm that masking is not working here either.

2020.3.32f1c1.

It seemingly works, until users do select-all via “ctrl+a”. It overflows no matter which mode in use (with wrapping=false)

I get it works by

  1. adding a rect 2d mask to the TMP input field’s TextArea, and
  2. set overflow mode to ‘Masking’
3 Likes

I just made a parent panel and added rect2dmask to the panel. and control a size of the panel instead of TMP…

Thank you so much for this! It works awesomely!

1 Like

Thank you! It works like a charm!