我正在尝试使用此处找到的Unity的EditorOBJExporter脚本:
http://wiki.unity3d.com/index.php?title=ObjExporter
但是我在使用脚本时似乎遇到了这个错误:
NullReferenceException
EditorObjExporter.MeshToString (UnityEngine.MeshFilter mf, System.Collections.Generic.Dictionary`2 materialList) (at Assets/Editor/EditorObjExporter.cs:68)
EditorObjExporter.MeshesToFile (UnityEngine.MeshFilter[] mf, System.String folder, System.String filename) (at Assets/Editor/EditorObjExporter.cs:196)
EditorObjExporter.ExportWholeSelectionToSingle () (at Assets/Editor/EditorObjExporter.cs:297)
我正在使用Unity版本4.1.2f1,我尝试将我的Unity版本降级到其他许多版本。我没做什么使得脚本不会导致Null引用异常。
有人可以告诉我如何解决这个问题吗?谢谢你提前。