Search Unity

Other Referencing textures from FBX files automatically through editor script

Discussion in 'Editor & General Support' started by pacgunn4m3d, Jan 30, 2023.

  1. pacgunn4m3d

    pacgunn4m3d

    Joined:
    Jul 23, 2015
    Posts:
    2
    Hello,

    I'm trying to create addressables automatically when importing FBX files to my project through editor scripts. It all works fine except for the textures, I am not able to reference the textures to the corresponding materials.
    I have tried to export the textures through ModelImporter, which exports the textures correctly to a folder but without references and I have also tried with OnPreprocessMaterialDescription but in this case the texture is always null.
    Is there anyone who can help me?

    Thanks!