Material doesn't have a texture property '_MainTex'


I'm new to unity3d.

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


Edit: whithout the terrain I do not get any errors....

Search first for an existing question.

It seems your shader don't have a _MainTex property.

Btw. what kind of terrain do you use? The Unity-built-in terrain system needs some very special shaders.

From a chat in IRC, it seems to happen when you try to use Android or iOS as a build target.

Terrains aren't supported on either, so throws out the error.

I'm going to bug report that as a fairly unhelpful error though.