Unity asset to fbx

Unity asset to fbx DEFAULT

I do a lot of work with Procedural Generation, and it’s obviously incredibly useful to be able to save this data for later use. In this article, I introduce tools to easily export a mesh to OBJ or FBX.

Exporting a GameObject or Mesh to FBX

Unity has a lot of packages, and even more preview packages. One of these is the aptly named “FBX Exporter”, currently in version 3.2.1, which allows us to export our Meshes to the FBX format for later use in Unity or in a Computer Graphics software, such as Maya or 3ds Max.

To get it, open the package manager in Unity, check the “Show preview packages” option, and download FBX Exporter.

dropdown FBX exporter

From the options popup, you can then select the Level of Detail of the mesh (LOD), the object pivot…

export options FBX exporter

What’s truly nice about this package is that it is capable of exporting GameObjects: you’re actually exporting the whole hierarchy of the GameObject so children will be exported as well.

3d viewer windows exported mesh

Overall, even if this package is marked as in Preview, it works appropriately and even handles exporting animations. This Package is very straightforward to use, but if needed the Unity Documentation offers more details about its usage.

Exporting a Mesh to OBJ

While I’m mostly concerned about storing my gameobjects as prefabs for later use in game, it is also possible to export ONLY the mesh, by exporting it to the OBJ format. This should make it easier to import your mesh in a 3D modelling software compared to FBX.

The code for the export logic, as well as a custom inspector, are available on the Unity3D Wiki.

Sours: https://www.noveltech.dev/export-mesh-unity/

How to batch export Unity3d prefab files to FBX format?

The solution that I found is a bit lengthy. I needed to convert prefab files to fbx format and then used blender to convert fbx files into wavefrontObj. To convert prefab files to fbx file format I used a Unity Package called FBX Exporter. The installation guide that I followed is from here.

After converting the files into fbx format I used blender to convert the files into obj format. I only needed the mesh files, so I excluded materials.To batch convert fbx files to wavefrontObj files I wrote the following script.

To run the script, save the files as and in terminal run the following command once blender is installed.

To get information about the API that I have used for the script, Blender PyDocs will be a great help.

answered Sep 1 '20 at 3:24


4911 silver badge55 bronze badges

Sours: https://stackoverflow.com/questions/63649925/how-to-batch-export-unity3d-prefab-files-to-fbx-format
  1. Ogs pricing
  2. Choice hotels ames ia
  3. 402 vs 454

About FBX Exporter

The FBX Exporter package provides round-trip workflows between Unity and 3D modeling software. Use this workflow to send geometry, Lights, Cameras, and animation from Unity to Autodesk® Maya®, Autodesk® Maya LT™, or Autodesk® 3ds Max®, and back again, with minimal effort.

The FBX Exporter package includes the following features:

  • FBX Exporter: Export geometry, animation, Lights, and Cameras as FBX files so you can transfer game data to any 3D modeling software. Record gameplay and export it to make cinematics. Start grey-boxing with ProBuilder, then export your GameObjects to FBX until you can replace them with the final Assets.

  • FBX Recorder: Export animations through the Unity Recorder (including Cinemachine camera animations).
    Note: To use this feature, you must install the Unity Recorder package.

  • FBX Prefab Variants: The FBX Importer allows you to import an FBX file as a Model Prefab and create Prefab Variants from them. Since Prefab Variants can override properties and children without affecting the original Prefab, you can use them in Unity without breaking the link to the file, and bring in updates.

  • Unity Integration for 3D modeling software: Effortlessly import and export Assets between Unity and Autodesk® Maya®, Autodesk® Maya LT™, or Autodesk® 3ds Max®. The 3D modeling software remembers where the files go, and what objects to export back to Unity.


The FBX Exporter package is compatible with the following versions of the Unity Editor:

The Unity Integration for Autodesk® Maya® and Autodesk® Maya LT™ feature supports the following versions:

  • Autodesk® Maya® and Autodesk® Maya LT™ 2020 / 2019 / 2018 / 2017

The Unity Integration for Autodesk® 3ds Max® feature supports the following versions of Autodesk® 3ds Max®:

  • Autodesk® 3ds Max® 2020 / 2019 / 2018 / 2017

Installing the FBX Exporter

To install this package, follow the instructions in the Package Manager documentation.

Verify that the FBX Exporter is correctly installed by opening it (from the top menu: GameObject > Export To FBX).

Additional support information

  • The FBX Exporter package has some known limitations you should be aware of before you start to use it.
  • If you encounter issues when using the FBX Exporter, look at the dedicated troubleshooting page.
  • If you are upgrading from the Asset Store version of the FBX Exporter, you need to follow specific steps.
Sours: https://docs.unity.cn/Packages/[email protected]/manual/index.html
How To Export From Blender to Unity 2020

========================= Unity FBX Exporter (1.3.0)

GitHub: https://github.com/KellanHiggins/UnityFBXExporter Contact: [email protected]

The Unity FBX Exporter is a simple FBX writer designed to export static objects from Unity into the FBX format, preserving the materials, game object hierarchy and textures attached.

It was written for the Unity asset Building Crafter (http://u3d.as/ovC) which allows anyone using Unity to create buildings right in Unity without any modeling experience.

Left is Unity


  1. Can export any GameObject into FBX format.

  2. Supports FBX format 7.3, around 2013.

  3. Exports materials into the FBX file.

  4. Exports texture references into the FBX file.

  5. Can make a copy of all materials and link them to newly minted FBX file.

  6. Can make a copy of all textures and link them to newly create materials.

  7. Export very deeply hierarchical Game Objects with just a few clicks.

  8. Objects will export their rotation correctly throughout the hierarchy (thanks @quickfingerz on Github).

  9. Objects will also export their scale correctly (thanks @quickfingerz on Github).

Known limitations

  1. FBX format will only recognize diffuse maps and normal maps when exporting. Can not include height maps, for example.

  2. Textures only support PBR Unity 5 shaders.

  3. Only exports one UV map, not a AO UV 2 map.

  4. Sort of works at Runtime. Needs to use File.IO instead of AssetDatabase to truly work at runtime.

  5. Sometimes the reimported FBX files don't find the right materials. C'est la vie.

  6. Exporting a prefab in the Project Tab sort of works. Needs more testing

  7. This is not designed to export Skinned Mesh Renderers properly. It will export a Skinned Mesh into the form that it is currently in in (like a statue). Armatures won't be included.


It is very simple to use this exporter. You shouldn't have any problems, and if you do, please add an issue to the Github project

  1. Select any GameObject in the scene.

  2. Select the type of export you'd like.

  3. Go to Assets menu -> FBX Exporter -> and you have three options (described below).

  4. "Only GameObject" will export a new FBX but not create any new materials or textures and use the original as reference

  5. "With new Materials" will export a new FBX and create new materials with the GameObject name + _ + material name

  6. "With new Materials and Textures" does 2b plus copying textures to a new folder. This one takes a while. Be patient.

  7. Wait a bit

  8. If you've selected new textures, wait a bit longer. Copying and reimporting the textures takes Unity's brainpower.

  9. Check the folder.

  10. Usually the materials will align, but if you have a FBX in the root area it may create new materials instead of finding the old ones.

  11. Success! You now have a brand new FBX file with everything parented correctly. Remember rotations in children still don't work.

NOTE: Sometimes the fbx file imports the materials as recursive instead of project wide for GameObject only export. If this happens, delete all the materials and reimport the FBX file using Project-Wide for material search.


This was created without owning Maya, so please give feedback on how opening these FBX files work. You can give feedback at [email protected]

Export to Blender

Blender 2.70 doesn't take ASCII FBX files. So you'll need to download the converter from the FBX site. Then convert it to a binary file and then import it into blender. Because the relative texture names are correct, blender will import your albedo and normal texture. Pretty neat!

Known Issues

  1. Skinned mesh renderers may or may not be exporting materials correctly. Did not work on my test object.
  2. Standard objects throw an error if you try and export them (like the sphere). Still seems to export fine. Also why are you exporting Unity's sphere???

Crediting This Project

As a note, this project is an MIT license. Which means you can take this code, upload it to the Unity Asset store and charge money for it. BUT, you must include the license (including the bit about Building Crafter) in your project. If you have any questions about this, hit me up.

If you compact it into a DLL and hide all the code away, you still have to include the license somewhere. I'd much rather you come to me then find out you've taken in 4 months later. Don't be a dick, give back to the community!

Change log

Version 1.3.0

  1. Removed some extra procedural test code.

  2. Added some null checks

  3. Added check for countries which use commas for decimal points instead of periods.

Version 1.2.0

  1. Thanks to @tetreum for fixing my bad tutorial.

  2. Also thanks to @tetreum for preventing copying non existent items

  3. Thanks to @cartzhang for adding skinned mesh render exporter

  4. Thanks to @mikelortega for fixing crash from trying to export materials that are procedurally generated

  5. Thanks to @Totchinuko for adding awesome vertex colour export

  6. Added an export option from the GameObject menu

  7. And thanks to @MadmenAlliance for putting this up on the asset store without proper attribution which forced me to get my ass in gear and pull in all these changes

Version 1.1.1

  1. Hotfix for something.

Version 1.1.0

  1. Thanks to @quickfingerz for fixing the rotation export so it looks right in the FBX file.

Versin 1.0.0

  1. Initial release
Sours: https://github.com/KellanHiggins/UnityFBXExporter

Asset to fbx unity


Importing FBX from Unity asset store to Unreal Engine 4


Now discussing:


161 162 163 164 165