Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity FBX Exporter - material/textures not embedding properly(?)

Discussion in 'Asset Importing & Exporting' started by delexaet, Dec 1, 2021.

  1. delexaet

    delexaet

    Joined:
    Apr 14, 2016
    Posts:
    39
    Hey,

    I'm running some tests with the FBX exporter package. There seems to be an issue with the exporter or my understanding of it.
    1. create a cube GO with a specific material in the scene
    2. create an FBX from it through FBX Exporter process ("Export To FBX...")
      1. Export Format : ASCII, Include : Model(s) + Animation,
    3. dragged the successfully generated .fbx into the scene hierarchy
    Instead of two identical cubes showing, the newly dragged into .fbx is all white. If I go into the .fbx inspector and remap the material in the Materials tab, it will appear visually correct.

    Can anyone help out and let me know what might be going on here and whether this is expected? Is the .fbx created through the unity exporter not expected to be reused inside Unity possibly?

    Thanks in advance
     
  2. vkovec

    vkovec

    Unity Developer - FBX Exporter

    Joined:
    Aug 9, 2017
    Posts:
    257
    Hi!

    Material export is currently limited, especially if not using one of the standard Unity shaders. Therefore the embedded material that is exported and re-imported may not match the original. Remapping the materials to the original Unity materials is the best solution in this case to keep the same material.

    What is exported for materials is:
    - Albedo (and texture if present)
    - Emissive color (and texture if present)
    - Specular color (and texture if present)
    - Normal map

    If the material has these and they are not exported, it may be a bug. In this case, if possible, please report it from Unity `Help > Report a Bug..` menu, including the material and exported FBX.
     
  3. mrkrrishjoy

    mrkrrishjoy

    Joined:
    Jan 12, 2023
    Posts:
    1
    still have the same problem its not exporting properly
     
  4. vkovec

    vkovec

    Unity Developer - FBX Exporter

    Joined:
    Aug 9, 2017
    Posts:
    257