Hi,
how could i apply a texture on a mesh imported in .fbx from Blender?
I have tried many ways :
-
Set the texture in Blender, being in “Object Mode”, with the “Texture” option ON, and export in .fbx
-
in Unity, add the texture in the “Textures” folder, add a mesh renderer to the imported mesh, drag and drop the texture on the mesh
-
export the .fbx with the same name as the .blend file, in the same folder where the texture is
-
in Unity, add the texture dynamically, with this code :
var myTexture : Texture;
function Start () {
renderer.material.SetTexture(“_MainTex”, myTexture);
}
and drag and drop the texture in the variable myTexture
- restart Unity and see if anything works better… still not
Would you have any idea about this?
Thanks a lot