Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShinyUI TextMeshPro shaders are failing to compile. #4

Open
MrDizzle opened this issue Feb 7, 2020 · 2 comments
Open

ShinyUI TextMeshPro shaders are failing to compile. #4

MrDizzle opened this issue Feb 7, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@MrDizzle
Copy link

MrDizzle commented Feb 7, 2020

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

I realize this repo is probably dead, but this library is so useful so I thought I'd ask!

@mob-sakai
Copy link
Owner

Hi @MrDizzle

Thank you for your reporting!

@mob-sakai mob-sakai self-assigned this Feb 8, 2020
@mob-sakai mob-sakai added the bug Something isn't working label Feb 8, 2020
@tengiplex
Copy link

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

Maybe this will work for you as well.

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

Fix (for UIEffect 3.2.0):

Go to Assets/Coffee/UIExtensions/UIEffect/ForTMPro/Shaders
Open TMP_SDF (UIShiny).Shader and TMP_SDF-Mobile (UIShiny).Shader
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)

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants