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..

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?