- Home /
 
 
               Question by 
               Paulius-Liekis · Dec 03, 2014 at 12:41 AM · 
                shadercoordinateswarningprefabutility  
              
 
              PrefabUtility.ReplacePrefab gives "Shader wants texture coordinates" warning
I'm creating a prefab from code using PrefabUtility.ReplacePrefab, and it's giving me "Shader wants texture coordinates, but the mesh doesn't have them" warning. I know that my mesh doesn't have texture coordinates and it's supposed to be that way. It has a material/shader assigned which doesn't need texture coordinates and the material lives in project space, so when prefab is generated it's still referencing same material which doesn't need texture coordinates.
So why does PrefabUtility.ReplacePrefab gives me that warning? And how to get rid of it? (obviously without adding UV coordinates)
               Comment
              
 
               
              Your answer