Search Unity

TextMesh Pro Masking overflow mode doesn't seem to work

Discussion in 'UGUI & TextMesh Pro' started by Trivium_Dev, Apr 15, 2020.

  1. Trivium_Dev

    Trivium_Dev

    Joined:
    Aug 1, 2017
    Posts:
    78
    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.
     

    Attached Files:

    geo_p likes this.
  2. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    1,188
    Same question for me. Is masking broken because I’m using URP or does this require more setup?
     
  3. esco1979

    esco1979

    Joined:
    Mar 18, 2014
    Posts:
    138
    I'm having the same issue here with the standard render pipeline. Does anyone know what is going on?
     
  4. ldb

    ldb

    Joined:
    Apr 30, 2013
    Posts:
    40
    Same issue here. Masking overflow does not work on 2020.1.16 with TMP 3.0.6
     
  5. justdizzy

    justdizzy

    Joined:
    Mar 8, 2016
    Posts:
    89
    Yup, here too: Unity 2020.3.16, TMP 3.0.6, URP 10.5.1
     
  6. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    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.
     
  7. skullthug

    skullthug

    Joined:
    Oct 16, 2011
    Posts:
    202
    Any updates on this @Stephan_B ?
     
    geo_p likes this.
  8. jimmychen0123

    jimmychen0123

    Joined:
    May 17, 2020
    Posts:
    12
    I have the same issue
     
  9. david-wtf

    david-wtf

    Joined:
    Sep 30, 2021
    Posts:
    25
    Tested with 2021.2.9f1, and can confirm that masking is not working here either.
     
  10. v8ju

    v8ju

    Joined:
    Feb 28, 2021
    Posts:
    2
    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)
     
  11. v8ju

    v8ju

    Joined:
    Feb 28, 2021
    Posts:
    2
    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'
     
  12. st5089

    st5089

    Joined:
    Feb 7, 2017
    Posts:
    1
    I just made a parent panel and added rect2dmask to the panel. and control a size of the panel instead of TMP...