When I'm creating a terrain, I always get this error "Material doesn't have a texture property '_MainTex'"
How Can I fix this problem, I alread created a "Shader", but do I have to link the terrain to the shader or what???
Thanks
Edit: whithout the terrain I do not get any errors....
This tends to happen when code is copy pasted into the Unity shader file. It hates when you copy paste things. So just make sure you type everything yourself. It can be a bit of a pain when you're trying to follow a tutorial, but that's what happens. I imagine that some of you are having luck when you restart Unity because it may fix some line endings when it reimports assets. It may also be because you aren't defining your properties in the "Properties" section.
This tends to happen when code is copy pasted into the Unity shader file. It hates when you copy paste things. So just make sure you type everything yourself. It can be a bit of a pain when you're trying to follow a tutorial, but that's what happens. I imagine that some of you are having luck when you restart Unity because it may fix some line endings when it reimports assets. It may also be because you aren't defining your properties in the "Properties" section.
– stevethorne