- Home /
Problem is not reproducible or outdated
Material doesn't have a texture property '_MainTex' UnityEditor.DockArea:OnGUI()
I got this error after I lightmapping my scene, and I don't think the lightmapping works because it's just blank for me
Here's the screenshot
EDIT : I've heard that you need to restart Unity & PC, which I've done it, but didn't work. Another thing is that I need to re-edit shader to fix the errors, I don't know much about shader so I don't know which shader should I edit ..
Are you using any funny shaders? The error is telling you that some $$anonymous$$aterial is using an odd shader without a texture named "_$$anonymous$$ainTex." I think all the built-in shaders have one, so only if you added/imported some custom shaders. Or maybe you someone removed a shader from a material?
But that's just what it says. I've never gotten that error.
I used a lot of plugins that contained shaders, but there is one beta plugin I just deleted recently because I got s lot of shaders errors, it supposed to be imported in Unity 5, but I accidentally imported in Unity 4. I think this is the cause of it. Is there a way to fix this?
Answer by Ericool · Dec 17, 2014 at 11:28 AM
Go see the shader and initialize it . The shader is trying to read a texture but there is none probably.
What shader? Which one? Can you explain it more because I have no knowledge at all about shader :/
Answer by Alanj2007 · Dec 17, 2014 at 01:51 PM
EDIT : I've fixed it, It's just my issues with the plugins that I'm using. CLOSED
Follow this Question
Related Questions
Error: Material doesnt have texture property. 1 Answer
Why does this material not turn invisible? 2 Answers
Errors with shaders/materials on newer iOS devices 1 Answer
Material/Shader issue 0 Answers