![]() Pb_Stl_Exporter.Export(path, new GameObject, FileType. Pb_Stl.WriteFile(path, mesh, FileType.Ascii) Mesh mesh = objMeshToExport.GetComponent().mesh Path = Path.Combine(path, "carmodel" + ".stl") You can use the pb_Stl plugin for STL format. ObjExporter.MeshToFile(meshFilter, path) MeshFilter meshFilter = objMeshToExport.GetComponent() Path = Path.Combine(path, "carmodel" + ".obj") ![]() This method requires three parameters: The path and filename of the file to which the scene will be exported. The Fb圎xporter::Initialize () method determines the filename and configuration settings of the exporter. If (!Directory.Exists(Path.GetDirectoryName(path)))ĭirectory.CreateDirectory(Path.GetDirectoryName(path)) įBXExporter.ExportGameObjToFBX(objMeshToExport, path, true, true) įor obj, ObjExporter is used. A Fb圎xporter object is created using a reference to the programs FbxManager singleton. Path = Path.Combine(path, "carmodel"+ ".fbx") String path = Path.Combine(Application.persistentDataPath, "data") ![]() UnityFBXExporter is used to export Unity mesh to fbx during run-time. Luckily, there are many plugins out there already that can be used to export Unity mesh to stl, obj and fbx. This is really complicated since you have to read the specifications for each each format (stl/obj/fbx) and understand them in order to make one yourself.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |