Skip to content

Blender & Unity ‐ Files & More

Dominik edited this page Oct 6, 2024 · 1 revision

Blender and Unity:

First, the question arises: Why Blender at all? Isn't Unity enough to realize our 3D dreams? Yes and no! Unity allows us to place our 3D objects into real-time applications, and it does that well. However, what Unity isn't as good at as Blender is creating and editing the 3D objects themselves. Of course, you can use pre-made objects from the Asset Store or the internet. However, this doesn't give you the full creative freedom that you have when you create and edit a 3D object from scratch in Blender. Blender is a jack-of-all-trades in the 3D area, but it is particularly well developed in modeling and sculpting, areas where Unity relies on imports. Therefore: If you want to create a new 3D object freely according to your imagination, use Blender; if you want to then integrate and experience it in an interactive AR/VR environment, import it into Unity and set up a project.

Unity Standard Format:

As the standard format for 3D objects, Unity documentation indicates .fbx as the preferred format. Sample tests have shown, however, that Unity accepts almost all common 3D formats. Whether .fbx, .obj, or even .blend, Unity accepts almost everything and renders it in the Scene view. The documentation indicates that internally the "non-.fbx" objects are exported to .fbx using a tool-based export. Therefore, it is still recommended to export the created 3D objects as .fbx. You can add new objects by dragging and dropping them into the folders in the project window in Unity, or you can manually navigate to the folders where the object is stored and import it (Assets-> Import...).

Screenshot (3)

Blender Export:

We have now created a 3D object in Blender and want to export it as a .fbx file:

Screenshot (4)

Simply select File->Export->FBX in Blender. And that's it :)

Attention: Materials and Textures

If the object is to use materials or textures from Blender, you need to change a few options in the export menu for fbx files.

Screenshot (5) In the export menu, you must select Copy under Path Mode and export the embedded textures by clicking the button to the right. In Unity, the textures will not be displayed directly; they are still "packed" in the FBX file. You can see them by clicking Extract Materials in the Unity object inspector.
grafik