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

Unity 2023: Shader does not work in build mode. #63

Open
TBartl opened this issue Feb 23, 2024 · 0 comments
Open

Unity 2023: Shader does not work in build mode. #63

TBartl opened this issue Feb 23, 2024 · 0 comments

Comments

@TBartl
Copy link

TBartl commented Feb 23, 2024

I understand this repo isn't maintained or verified beyond 2021, but I figured I'd leave this here in case anyone else runs into this while trying to use a more modern version of unity.

Attempting to use these shaders in 2023.2.6f1 works in the editor, but fails during runtime: the shaders will appear pink.

After some debugging, I found this was because of the RenderPipeline tag defined:

  • It is currently defined as UniversalRenderPipeline
  • It should be UniversalPipeline

This one is really Unity's fault in the first place:
https://forum.unity.com/threads/renderpipeline-tag-changed.1468196/

Older versions of unity <2022 wouldn't actually respect this tag, and some of the documentation had it listed incorrectly.

For anyone looking for a quick workaround, you can create a "CustomToonShader" and edit the shader tags directly in the hlsl file generated from it.

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

No branches or pull requests

1 participant