Search Unity

Bug TMP_SubMeshUI doesn't respect scene visibility

Discussion in 'UGUI & TextMesh Pro' started by Flavelius, Jun 30, 2020.

  1. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    upload_2020-6-30_9-54-13.png

    The scene visiblility toggle is not clickable (does not change state) and ignores its parent state.
    TMP 2.1.0 preview.14 (preview because of other bugs that exist in the release version)
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    This is working fine for me in 2019.4.1f1 and 2020.x.

    upload_2020-6-30_2-3-38.png


    BTW: Sub Mesh objects are no longer serialized which is why it is not tracked by prefabs.
     
  3. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    This is how it behaves for me
    (2019.2.21f1 btw)
     
  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    I will test in 2019.2.21f1 to see if it might be an issue with the Editor and this visibility feature. I'll let you know what I find out.

    Alternatively, you can also test in 2019.4.1f1 to see if you get the same behavior or the correct one.
     
  5. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Just tested Preview 14 in 2019.2.21f1 and I am seeing the same reported issue.

    I also tested in 2019.3.15f1 as well as in 2019.4.1f1 and everything is behaving correctly and as expected.

    It appears this issue is with the scene visibility feature itself and have been resolved in subsequent Unity releases.
     
  6. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    Okay, i'll see if upgrading is an option, thanks.
     
  7. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    Now, after upgrading, it seems to work. But still shows the same effect after exiting playmode (text becomes visible). Only manually re-toggling visibility hides it again.
    (2019.4.4f1, TMP 2.1.1)
     
    Last edited: Jul 29, 2020
  8. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    2019.4.5f1 is now available.

    I would suggest testing with that release to see if the behavior persists. If the issue remains, I would suggest submitting a bug report as this functionality is specific to the Scene Visibility feature and not specific to TMP.

    Update:
    Seems like Scene visibility gets reset on all objects when entering / exiting play mode. Do you get the same behavior?
     
    Last edited: Jul 30, 2020
  9. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    2019.4.6f1 - Still the same (and for me it doesn't reset, but restores the previous state after exiting, apart from the TMP issue):

    Interestingly only certain characters or specific text setups seem to remain.
     
    Last edited: Jul 31, 2020
  10. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Scene visibility as far as I understand should only affect the Scene View but not the Game View.

    In 2019.x, this feature appears to have issues with all objects as entering play mode resets these modes. This feature appears to be working correctly in 2020.2 alpha.

    I would recommend submitting a bug report about the scene visibility reset issue related to entering / existing play mode.
     
  11. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    If i understand you correctly then yes, i'm ofcourse only talking about the scene view.
    The toggles don't reset for me, after exiting playmode (meaning the eye-icon has the same state as before entering playmode as expected), the only issue is the TextMeshPro object that stands out.
    I'll try to report a bug.