TMP Button not working in LWRP

Hi,

I just added LWRP to my project. After done that all my UI TMP Buttons dont display any text. Regular Buttons displays text as expected. TMP Object seams to be working fine. But once I add TMP to the button it does not display any text.

But I get those errors while working in Shadergraph. However they all call for GUILayout. I don’t know if that’s relevant to the issue, as other things seams to be working just fine

ArgumentException: GUILayout: Mismatched LayoutGroup.repaint
UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type layoutType) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayoutUtility.cs:311)
UnityEngine.GUILayout.BeginScrollView (UnityEngine.Vector2 scrollPosition, System.Boolean alwaysShowHorizontal, System.Boolean alwaysShowVertical, UnityEngine.GUIStyle horizontalScrollbar, UnityEngine.GUIStyle verticalScrollbar, UnityEngine.GUIStyle background, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayout.cs:360)
UnityEngine.GUILayout.BeginScrollView (UnityEngine.Vector2 scrollPosition, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayout.cs:349)
UnityEditor.ShaderInspector.ShaderErrorListUI (UnityEngine.Object shader, UnityEditor.ShaderMessage[] messages, UnityEngine.Vector2& scrollPosition) (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:203)
UnityEditor.ShaderInspector.ShowShaderErrors (UnityEngine.Shader s) (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:323)
UnityEditor.ShaderInspector.ShowShaderCodeArea (UnityEngine.Shader s) (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:178)
UnityEditor.ShaderInspector.OnInspectorGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/ShaderInspector.cs:106)
UnityEditor.UIElements.InspectorElement+<CreateIMGUIInspectorFromEditor>c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:501)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

What version of TMP are you using?

Surface shaders do not work with SRP. As such if your buttons were using the Distance Field Surface shaders, that will be an issue.

Im using default TMP shaders, didn’t customize anything

What version of Unity are you running?

What version of TMP?

None of the errors above appear to be specific or reference TMP. Do you get the same behavior in a new project using the latest version of TMP which is 1.5.0-preview.1 for Unity 2018.4 or 2.1.0-preview.1 for Unity 2019.x or newer?

For testing, be sure to import the TMP Essential Resources from those latest release of TMP.

If you are able to reproduce these errors / behavior in a new project, please provide me with the steps or simply submit a bug report and then provide me with the Case # once you have it.