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 throwing exceptions because the shader doesn't have a _MainTex property. #98

Open
gekidoslair opened this issue Nov 6, 2024 · 1 comment

Comments

@gekidoslair
Copy link

Unity is throwing exceptions because the shader doesn't have a _MainTex property.

Material 'Std_Skin_Head' with Shader 'Shader Graphs/RL_SkinShader_Variants_HDRP_Tessellation' doesn't have a texture property '_MainTex'

2024-11-06 10_04_16-RL_SkinShader_Variants_HDRP_Tessellation_

The errors go away if I rename the property in the shader, but of course this breaks any materials that you have setup.

@soupday
Copy link
Owner

soupday commented Nov 6, 2024

What happens if you add a Texture2D property and call it _MainTex and uncheck the exposed setting. So _MainTex exists but it's not used by anything.

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

2 participants