Shader error in 'TextMeshPro/Distance Field': failed to open source file: 'TMPro_Properties.cginc' at line 126 (on d3d11)
Asked Answered
P

4

5

The textmesh pro file is not loading in unity. I am making a project using arcore and due to some issue with textmesh pro I was not able to build it properly.

Platto answered 19/4, 2020 at 12:51 Comment(0)
P
13

Delete the old version of TMP in Asset folder... than reopen Project & go: Window -> TextMeshPro -> Import TMP essentials than Window -> TextMeshPro -> Project Files GUID Remapping Tool... this will update the project and fix all missing TMP scripts...

+

Install Post Processing package from

Window -> Package Manager -> search and install post processing

Platto answered 19/4, 2020 at 12:52 Comment(1)
...and if that does not help, reimporting the shader does. At least for me it did.Nuisance
F
3

The proposed solution didn't work in my case. This might be because I have URP project specifically. Sharing in case it helps:

  • Select Edit -> Rendering -> Generate Shader Includes
  • Do a reimport of the shaders in TextMesh Pro by going to Assets/TextMesh Pro/Shaders, right-clicking and selecting Reimport
Faradic answered 20/2, 2023 at 3:21 Comment(0)
H
1

Delete all the TextMesh Pro folders and DON'T reinstall the extra's.

Helli answered 12/12, 2022 at 18:2 Comment(0)
T
0

This might be the issue with the TextMeshPro folder contents.

Try the following steps to resolve the issue.

  • Delete the TextMesh Pro folder located under Asset folder from the project.
  • Reopen the project.
  • Import TextMeshPro by clicking on Window -> TextMeshPro -> Import TMP essentials
Typebar answered 12/5, 2022 at 11:52 Comment(2)
Unfortunately in my case, this solution does not work :(Different
Added; Even with this error, Text comes out well.. But I am worried there is unexpected issue :(Different

© 2022 - 2024 — McMap. All rights reserved.