soupday / cc_unity_tools_HDRP

Package for importing and auto setup of Character Creator (3 & 4) and iClone (7 & 8) character exports for Unity HDRP Pipeline.
GNU General Public License v3.0
131 stars 37 forks source link

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

Open gekidoslair opened 4 hours ago

gekidoslair commented 4 hours ago

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 commented 4 hours ago

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.