- Home /
A common problem~need help
I have got this error
Material doesn't have a texture property '_MainTex' UnityEditor.DockArea:OnGUI()
I see many people had meet this errorBut I did not find a way online
Who can help me solve this problem
Thanks for your help..
have you found this error on a script or just when you run the game?
Answer by Bunny83 · Mar 26, 2011 at 03:45 AM
You use a shader that don't have a _MainTex property. If you try the get (read) or set (write) Material.mainTexture but the shader you use inside of this material doesn't have a _MainTex you will get such an error. What shader do you use in your material?
Your answer
Follow this Question
Related Questions
Material doesn't have a texture property '_MainTex' on PREMADE GAME 0 Answers
Material doesn't have a texture property '_MainTex' UnityEditor.DockArea:OnGUI() 2 Answers
Material doesn't have a texture property '_MainTex' 8 Answers
Material doesn't have a texture property '_MainTex' 2 Answers
Pink Base Map Distance 1 Answer