Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question TmpText not showing under mask after changing show values of tmp shader

Discussion in 'UGUI & TextMesh Pro' started by kei233, Dec 8, 2021.

  1. kei233


    Dec 16, 2019

    original title: Some of the ui material change to "stencil id:1, op:keep, Comp:Equal"
    usually they were "Defalut UI Material (Material)"
    they are Images with no material.
    The problem is tmpTexts under these Images can't be seen.
    I tried :
    remove the Image, and add component image ,text can be seen
    but it change to "stencil id:1, op:keep, Comp:Equal" while on play , then text can't be seen

    befored all these happened:
    I was using ctrl+z , then got the error below. Switched another scene then found this problem.
    InvalidOperationException: Sequence contains no elements
    System.Linq.Enumerable.Last[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <a6e6599e603241b58034b5ba39fef2ac>:0)
    UnityEditor.Graphs.AnimatorControllerTool.UpdateStateMachineSelection () (at <1d4681f7b1d74362928faef31b1df1aa>:0)
    UnityEditor.Graphs.AnimatorControllerTool.RebuildGraph (System.Boolean updateSelection) (at <1d4681f7b1d74362928faef31b1df1aa>:0)
    UnityEditor.Graphs.AnimatorControllerTool.UndoRedoPerformed () (at <1d4681f7b1d74362928faef31b1df1aa>:0)
    UnityEditor.Undo.Internal_CallUndoRedoPerformed () (at <b1863331a9da4cebb6cd21df9a943f93>:0)
    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler() (at ?)

    It seems it is control by mask component.
    Maybe I changed some value of the textmeshpro shader, then caused text not showing under mask.
    still want help : how to reset textmeshpro shader? I forgot which value I changed.

    I use my backup font asset to replace the current one, things are now alright.
    Main problem solved
    still want to know which value of tmptext (shader or font asset?) changed will cause this issue: text not showing under mask.
    Last edited: Dec 9, 2021
  2. JHSV


    Jul 11, 2013
    Has there been any progress on this issue? I'm experiencing this in Unity 2021.3.12f1. My Text Mesh Pro Text asset does not display when it's a child of a scrollview and the mask is enabled, but it does display when the mask is disabled. I need to have both the mask enabled and the text visible.