Apply Generated Texture to Mesh

Hey All, I’m currently having an issue applying my generated material to my mesh. At the moment, whenever I try to apply a generated or imported Texture to my mesh, it always returns a color within the spectrum of the Texture. So for a noiseMap, it returns gray:

154293-meshproblems.gif

But for others, it returns whatever color is mostly prevalent there. Any ideas on how to fix this? If I apply either of these textures to a cube for example, they render correctly.

Make sure you also generate UVs for the mesh, otherwise all parts of the object will sample the same pixel of the texture;

Vector2[] uvs = new Vector2[4]
{
    new Vector2 (0f,0f),
    new Vector2 (1f,0f),
    new Vector2 (0f,1f),
    new Vector2 (1f,1f)
};
mesh.uv = uvs;