Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Textures and FBX import

Discussion in 'Editor & General Support' started by ghoulfool, Apr 11, 2014.

  1. ghoulfool

    ghoulfool

    Joined:
    Jan 14, 2014
    Posts:
    16
    I can manually attach textures to materials after I've imported some objects into Unity via FBX (from 3ds Max).
    However this can get tedious and time consuming if I have to do it many many many times.

    Is there a naming convention that I have to follow, or put the textures in a specific folder in order for unity to pick them up from the FBX and attach them automatically?

    Cheers
     
    Last edited: Apr 11, 2014
  2. twiesner

    twiesner

    Joined:
    Oct 4, 2011
    Posts:
    309
    Not sure what 3d program you are using but in the 3ds max fbx exporter you an choose to "embed media" which just exports textures with the mesh to the specified location of your choosing. It automatically links up in Unity then.
     
  3. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,738
    We've used the "embed textures" options in Cinema 4D, and Unity still can't find them automatically. Honestly, in all the years I've been using Unity, I can't recall a single time when it has ever automatically linked up the textures to the materials.
     
  4. ghoulfool

    ghoulfool

    Joined:
    Jan 14, 2014
    Posts:
    16
    "Embed textures" is the way to go! :D Even though it's switched off by default.
     
  5. twiesner

    twiesner

    Joined:
    Oct 4, 2011
    Posts:
    309
    How recent is your plugin version? Maybe there is an update for the fbx plugin to fix the issue.
     
  6. OllyNicholson

    OllyNicholson

    Unity Technologies

    Joined:
    Jun 17, 2011
    Posts:
    142
    if you have your textures in a folder called '\textures' in your Unity project, nested where your model is exported to Unity will always pick them up.

    E.g. ..\Assets\Models\Textures

    If they are not in your project or not embedded then they will not be imported. The best bet is to repath your textures in your 3D app to where they are in your Unity project then you are only updating one set of master textures. Note you can also specify the material naming based on texture name, material name or model and material name - in the model tab in the inspector for the FBX. This can have a bearing on whether you are picking up existing materials so just be aware which you are using.