- Home /
"not a valid texture file name" error generated when importing Blender mesh into Unity
This is the error I'm getting:
'.' is not a valid texture file name on asset 'Assets/Models/Planet Original Large.blend' on material 'Mat_Tiled_Grass1__Terrain' of renderer 'Sphere'. The file will be ignored.
The asset had been importing fine as an untextured mesh. I then applied a material using Texture Paint in Blender. I saved the asset into the Assets folder as a Blender file as usual. When the asset had finished updating it generated the error above.
I should add that the mesh looks good and appears correctly textured in Blender.
I assume I've done something foolish when creating my Blender material. Are there any obvious causes of this which I might be tripping over?
I have the very same problem. I tried to change the material name in Blender, re-save my blend and go back to Unity. The warnings in the Unity console (my blend has 2 materials on the relevant object and I one message for each of them) changed accordingly, which means that Unity actually reimported the model and found something amiss again. I told Unity not to import the material though. This seems to make no sense ...
Answer by Matthewfrechette98 · Jul 06, 2014 at 12:24 AM
Okay guys finally figured this out! I was having the same problem as well! I had the same error and what you need to do is permanently delete all the textures from blender! I suggest you to UV map them as this will be easier to apply in Unity!