How to export Unity scene material to OBJ file

Series Article Directory

1. How to export Unity scene materials to FBX files: http://t.csdn.cn/Xyjxe
2. How to export Unity scene materials to OBJ files: http://t.csdn.cn/08RY3
3. Unity terrain How to export to OBJ file

(You can open my blog homepage to view other articles in this series)



foreword

In Unity, we often download a lot of resources from the store. Some of the scene resources are composed of multiple single models, all of which are single prefabricated bodies. At this time, we want to export these resources to a third party for other effect processing. , but from unity, the individual objects are reset to zero, we also need to build a scene like building blocks according to the dome of unity, which wastes unnecessary construction time for the art. Or if there is a demand for art in the project, it is necessary to export the preset objects in the Unity scene as FBX or OBJ format files available in 3DMax or other modeling software, and export according to the selected scene objects. The proportional relationship is Unity 1 meter = 3DMax or Other modeling software 1 cm.

The previous article talked about the method of exporting U3D scene materials to FBX files. This article will explain the method of exporting Unity scene materials to OBJ files.


1. Export the Unity scene material to the OBJ file and install the plug-in network disk download address

Link: https://pan.baidu.com/s/1Qw7DQXUuisVDKcylJ2WQ3w?pwd=Uobj
Extraction code: Uobj

2. Operation steps

1. Drag the downloaded folder to the Unity Project, as shown in the figure below.

2. After the folder is imported, you can find the Custom output option in the editor menu, and you can see three options, namely "Export all meshes to a single Obj file" and "Export selected meshes into one Obj file", "output each selected model to a single Obj file", the second item is generally used.

3. Note: You need to name the script ObjExporter.cs, and put it in the Editor directory of the project (if not, you can create a new folder and rename it yourself), select the model object you want to export (you can have several sub-objects) , Find the Custom output option in the editor menu, we generally use the second item.

 4. After successful output, the following dialog box will pop up.

 5. The exported model and associated textures will be placed in the "ExportedObj" folder in the project root directory.


Summarize

The above is what I will talk about today. This article provides a link to the network disk for Unity to export the FBX file to install the plug-in, plus detailed steps for exporting. You can open my blog homepage to view other articles in this series.

1. How to export Unity scene materials to FBX files: http://t.csdn.cn/Xyjxe
2. How to export Unity scene materials to OBJ files: http://t.csdn.cn/08RY3
3. Unity terrain How to export to OBJ file

It should be noted that the preset objects in the Unity scene are exported as FBX or OBJ format files available to 3DMax or other modeling software, and the export ratio relationship is Unity 1 meter = 3DMax 1 centimeter.

Guess you like

Origin blog.csdn.net/csDN_Smily/article/details/130320009