Upload 3d Model to unity Scene from folder using only c# script

Hello everyone,

I am using a Nerual Network to produce some models which I save in a folder of my local PC, it creates for each model 3 files (one .mtl, one .obj and a png).

I want to know if there is a way to upload the 3d Model into the Unity Scene when executed, only using c# scripts. (the files about the model are not present in Unity asset folder).

Moreover, I should be able to dynamically check the local folder to see if some other models are added and if so, load also them in the Scene.

Thanks in advance.

should this happen in Unity editor or in the Build?

look for Unity OBJ Importer, there are free and paid plugins
one example Runtime OBJ Importer | Modeling | Unity Asset Store

To check if new files are added, look for some generic c# code to watch folders:
https://stackoverflow.com/questions/15017506/using-filesystemwatcher-to-monitor-a-directory

I think in the Build, I will look at them, thanks a lot.

Actually I think that the main problem is that I have to create an AssetBundle from the 3 files that I have, and then load it into the scene. In fact, if I try to upload a single assetbundle already created, it works. However I don’t find the way to create dynamically the assetbundle.