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

TextMeshPro support problems #304

Closed
PalaNolho opened this issue Feb 3, 2025 · 2 comments
Closed

TextMeshPro support problems #304

PalaNolho opened this issue Feb 3, 2025 · 2 comments
Assignees
Labels

Comments

@PalaNolho
Copy link

Hi,

I tried to apply an UI Effect to a textMeshPro component and it told me that it would require additional support.
I pressed Import to import the assets and when I try to change the effect I get pink materials and an error:

Image

Shader error in 'Hidden/TextMeshPro/Distance Field (UIEffect)': Couldn't open include file 'Assets/TextMesh Pro/Shaders/TMPro_Properties.cginc'. at Assets/Samples/UI Effect/5.3.1/TextMeshPro Support (Unity 6)/Hidden-TMP_SDF-UIEffect-Unity6.shader(140)

Not sure if it's relevant my I'm working in URP

thanks

@mob-sakai
Copy link
Owner

It is likely that the directory for TextMesh Pro Essential Resources has been moved, causing the cginc file to fail to load.
By default, it should be located at: Assets/TextMesh Pro


Solution 1: Move the TextMesh Pro Essential Resources directory to Assets/TextMesh Pro

Moving the TextMesh Pro folder back to Assets/TextMesh Pro should allow the cginc files to load correctly.

Solution 2: Manually fix the cginc file paths in the shader

Find the following line in the shader file that is causing the error and update the file path to match its current location:

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

@PalaNolho
Copy link
Author

solution worked 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants