i know resource.load + instance but i am not meaning that way
my fbx not contain in asset folder when i make *.exe, that meanings it is a new fbx.
i know make fbx to a assetbandle by using BuildPipeline.BuildAssetBundle and use www to load then instance make it.
but i still need to use unityEdit to make fbx to assetbandle. i want to load and instance fbx directly.
who god knows how? tell me thanks very much.
我知道这里有很多中国的高手,我再用汉语打一遍我的问题吧。
我想在unity3d 运行的时候动态加载fbx到游戏中,我知道可以用resource.load + instance 实现,但是这个fbx不是预先加载到工程里面的,所以这样做是不会成功的。
我也知道用BuildPipeline.BuildAssetBundle 创建一个*.assetbandle 的文件可以之后可以用WWW动态加载进去。可是这样做得把每个fbx都通过untiy3d制作成assetbandle 才行。我不希望制作assetbandle ,想直接加载fbx文件,请问各位高手有何办法。
如果直接加载实在逆天的话,我想让BuildPipeline.BuildAssetBundle 在运行时执行,然后将指定的fbx打成资源包,然后加载,就是说,从fbx到可以用WWW载入的资源包之间希望实现自动化,就是不打开Unity窗口。
请教了!谢谢大家
Get Assimp. It’s an open source library that can load FBX files. You’ll have to create your own wrapper around it to create the relevant objects for Unity. There is a .NET wrapper out there (AssimpNet) but you’ll have to download the source and compile to .NET 3.5 (it.s 4.0 by default).