##一:导入步骤 1:首先需要将所有场景基础组件 转化成fbx模型 2:接着需要根据火炬之光 场景layout文件,在unity中对 导入的prefab进行 组装布局
##二:导入方法详解 1:首先通过两个 blender 插件 将 场景中的基本组成模型 导出为 fbx,供unity使用 https://gist.github.com/liyonghelpme/e64b88d6ebb93ca90e20 https://gist.github.com/liyonghelpme/1fe5e8005e925b882176
2:将mine.dat 1X1Entrance_E.layout 火炬之光的 场景组件配置文件和 场景配置文件转化为 json文件供unity读取
https://gist.github.com/liyonghelpme/29ae07cc3dd7647b33a4
https://gist.github.com/liyonghelpme/82f626f5a65c25093765
3:在Unity中一个脚本 用于 调整所有 导入的fbx文件,配置scale比例1, 以及无动画
4:Unity 中一个脚本 用于 根据mine.dat 导入的json文件,对所有场景组件 进行组装,添加特定的mesh碰撞体,构建成新的 prefab 放到 prefab文件夹下
5:根据导入的layout json文件,获取特定的prefab 进行场景拼装
unity 工程代码
https://github.com/liyonghelpme/unityImportTorchlightLevel