UIEffect icon indicating copy to clipboard operation
UIEffect copied to clipboard

ShinyUI TextMeshPro shaders are failing to compile.

Open MrDizzle opened this issue 4 years ago • 5 comments

ShinyUI TextMeshPro shaders are failing to compile.

Clicking 'Fix' when adding a UIEffect creates the UIShiny material, but the material shader renders pink.

Windows: Unity 2018.4.16f

  • UIEffects 3.2.0

image

The list obscures it here but these shaders are in the 'Failed to compile' section of the dropdown

image

MrDizzle avatar Feb 07 '20 13:02 MrDizzle

Hi @MrDizzle

Thank you for your reporting!

mob-sakai avatar Feb 08 '20 02:02 mob-sakai

+1

I get an error in URP when trying to do this with Unity 2020.1.17f

styliann-eth avatar Jan 17 '21 18:01 styliann-eth

Is this solved? Cause I'm still having this issue.

GuillemDomenech avatar Feb 06 '21 02:02 GuillemDomenech

I also have that issue in URP Unity 2020.3.7f1. @mob-sakai Can you please try to fix it?

SirPytan avatar May 07 '21 18:05 SirPytan

Hey everyone, I was able to fix this issue in 2020.3.26f1 in TMP v3...

Shader doesn't compile because TMP's folder path changed.

Fix (for UIEffect 3.2.0):

  1. Go to Assets/Coffee/UIExtensions/UIEffect/ForTMPro/Shaders
  2. Open TMP_SDF (UIShiny).Shader and TMP_SDF-Mobile (UIShiny).Shader
  3. On line 128, 129 of UIShiny Shader and line 94 of Mobile UIShiny Shader, replace:

#include "Assets/TextMesh Pro/Resources/Shaders/TMPro_Properties.cginc" #include "Assets/TextMesh Pro/Resources/Shaders/TMPro.cginc"

with the correct directory

#include "Assets/TextMesh Pro/Shaders/TMPro_Properties.cginc" #include "Assets/TextMesh Pro/Shaders/TMPro.cginc"

(same thing with the mobile, but just the property one)

This fixed it for me. Hopefully this will help someone... spent quite a long time troubleshooting. Cheers!

tengiplex avatar Feb 15 '22 11:02 tengiplex