- Home /
Apply a 'default' planar UV mapping
Hi,
I have a set of meshes imported from Blender with no UV mapping. II would like Unity to apply a default planar UV mapping on those, instead of displaying meshes with no texture (just a uniform color). I can do that by script, but the texture only shows up at runtime and not in the 3D view. Is there any way to have this mapping made by default in the 3D view?
yeah, that would work, but I would like Unity to do that by default, I have many meshes like that. Probably I would need to write a plug-in for this...
Answer by Paulius-Liekis · Oct 08, 2012 at 01:01 PM
Look into AssetPostprocessor class. You can apply same logic from your script in OnPostprocessModel - this function is called right after model is imported from file.
It works great! I can now see my meshes textured in the 3D view as I am importing them, thanks Paulius!
Your answer