Search Unity

TextMesh Pro "TMP SubMeshUI" should pick up "Cull Transparent Mesh" from parent

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by Peter77, Aug 7, 2019.

  1. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    4,135
    When TMP creates a "TMP SubMeshUI", it does not pick up the "Cull Transparent Mesh" settings from its parent Canvas Renderer.

    Reproduce
    1. Create a Text Mesh Pro UGUI object
    2. Tick the "Cull Transparent Mesh" settings on the Canvas Renderer that sits on the same GameObject
    3. Do something that causes TMP to create a "TMP SubMeshUI" object
    4. Select the "TMP SubMeshUI" object
    Actual
    Observe the "TMP SubMeshUI" object does not use "Cull Transparent Mesh".

    Expected
    It should pick up the settings from the parent.
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,348
    I just made the change which will be included in the next release.

    The synchronization of this flag between the parent and child objects will happen when the text object is updated..
     
    Peter77 likes this.
  3. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    4,135
    Great, thanks for the quick help!
     
  4. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,348
    You are most welcome.

    This was an easy change.
     
    Peter77 likes this.