Shader wants texture coordinates, but the mesh doesn't have them?

Hi Guys,

I am new to unity3d and have a problem. I will explain what I have at the moment.

Texture (png file that has 4 faces for a block made in photoshop) imagesize is 128x128 pixels

I have a material with the png set to it.

I have assigned it to the mesh renderer.


On running the mesh is grey and not like the image and i get Shader wants texture coordinates, but the mesh doesn’t have them error.

how do I fix this? any questions juat ask and ill try and answer them :slight_smile:

This has nothing to do with the texture or photoshop.

This is about the mesh, the model that you’re trying to put the texture onto.

You need to open the 3D model in a 3D tool and add uv(texture coordinates) to the model, otherwise the shader doesn’t know what part of the texture to put where.