Can i use materials on meshes without a UV

How you do that?