mob-sakai / UIEffect

UIEffect is an effect component for uGUI element in Unity. Let's decorate your UI with effects!
https://github.com/mob-sakai/UIEffect
MIT License
5.72k stars 787 forks source link

ShinyUI TextMeshPro shaders are failing to compile. #201

Open MrDizzle opened 4 years ago

MrDizzle commented 4 years ago

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

image

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

image

mob-sakai commented 4 years ago

Hi @MrDizzle

Thank you for your reporting!

styliann-eth commented 3 years ago

+1

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

GuillemDomenech commented 3 years ago

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

SirPytan commented 3 years ago

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

tengiplex commented 2 years ago

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!