Quantcast
Channel: Answers for "Material doesn't have a texture property '_MainTex'"
Viewing all 23 articles
Browse latest View live

Answer by MaxxRafen

$
0
0
In my case, I didn't have a source image set, only the material. Every change to the material would throw this error. I set the source to a dummy image and the error went away.

Answer by JAAMY

$
0
0
if you are using a SRP ( unity shader graph ) , open your graph in its graph window, then add a property with type of **Texture2D** then name it : **"_MainTex"** and also name it's **reference** to **"_MainTex"**. But Important : Remember to uncheck the button called **"Exposed"**, save your asset and you should be fine. you don't need to use this new Property ![alt text][1] [1]: /storage/temp/139905-annotation-2019-06-12-164049.png

Answer by ravin5432

$
0
0
I get this error every time any scene loads that has sprites used in the UI. I will attach an image to show the setup. As you can see, it shows the image as just red lines, and its just the default setup for using a sprite image. So, the solution of using Unity Shader Gragh dosent solve the error. ![alt text][1] [1]: /storage/temp/201052-me.png
Viewing all 23 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>