Overview¶
Blender 2.8x (above) add-on for export directly to Unreal Engine 4 with all setting in Blender (inspired by send to unreal add-on).
Feature¶
Allow you export static mesh, skeletal mesh, and animation with single click directly to Unreal Engine 4 or to FBX file.

Static Mesh¶
Export for Static Mesh.
- Export to FBX and Unreal Engine
- Custom collision from vertices
- Custom collision from mesh — v.1.2
- Custom lightmaps
- Export profile — v.1.2
- Socket System — v.1.3
- Level of Detail — v.1.4
- Import Static Mesh From Unreal Engine v.1.4
Export and import setting in Blender.

Skeletal Mesh¶
Export for Character (Skeletal Mesh).
- Export to FBX and Unreal Engine
- Modular character
- Skeleton preset (Epic skeleton)
- Add twist bone for skeleton preset — v.1.2
- Generate rig for skeleton preset — v.1.2
- Export profile — v.1.2
- Socket System (Not Support Export) — v.1.3
- Character Part Manager v.1.4
- Import Skeletal Mesh From Unreal Engine v.1.4
Export and import setting in Blender.

Animation¶
Export for Animation.
- Export to FBX and Unreal Engine — v.1.2
- Export profile — v.1.2
- Import Animation From Unreal Engine v.1.4
Export and import setting in Blender.

Retarget Animation¶
Retarget Animation to another skeleton — v.1.3 Experimental, v.1.4 Production Ready
How it works¶
Unreal Engine 4 allow to remote execute python script, with that we can execute python script import assets (FBX File) to Unreal Engine 4.
Экспорт в UE4 с помощью аддона Send to Unreal для Blender.
Send to Unreal — это официальный аддон от Epic Games, позволяющий производить корректный экспорт объектов из Blender в движок Unreal Engine 4. Можно экспортировать статичную и скелетную геометрию (включая морфы), а так же анимации. Аддон хорошо работает с Linux-версией Blender и Unreal Engine.
Примечание: Репозиторий приватный, поэтому потребуется аккаунт на GitHub и его подключение к профилю на официальном сайте движка : https://www.unrealengine.com/en-US/ue4-on-github
Официальные уроки по Send to Unreal:
Подготовка к работе.
Настройка движка.
Аддон устанавливается в Blender так же, как и прочие аддоны, но для дальнейшей работы потребуется довольно нетривиальная настройка. Как бы не было удивительно, начать придётся с настройки Unreal Engine и проекта, в который планируется производить экспорт.
В движке в Edit / Plugins необходимо активировать плагины Python Editor Script Plugin и Editor Scripting Utilities.


В Edit / Project Settings включить дистанционную активацию Python-скриптов:
Python Remote Execution / Enable Remote Execution
В Edit / Editor Preferences отключить Use Less CPU when in Background. Это нужно, чтобы редактор не замедлялся в свёрнутом состоянии, и экспорт из Blender в движок происходил корректно.
Настройка сетевого экрана (брандмауэр).
Сигнал от аддона к движку о том, что нужно произвести импорт экспортируемого объекта, передаётся по сети посредством Python API. По умолчанию в сетевом экране такая возможность заблокирована. Необходимо разрешить доступ к адресу 239.0.0.1:6766 с адреса компьютера в локальной сети. Иначе аддон не сможет взаимодействовать с движком и будет показана ошибка «Could not find an open Unreal Editor instance». К примеру, адрес компьютера в локальной сети 192.168.1.5, то разрешение будет выглядеть так:

Настройка аддона в Blender.

Примечание: Настройки аддона сбрасываются выключением-включением.
Вкладка Paths.
Always use Unreal scene scale — если активировано, то при открытии новой сцены будет автоматически настроен Unit Scale на 0,01 и в соответствии с этим будут настроены размер ячеек сетки «пола» и дальнее расстояние отсечения 3D-вида (Clip End). Для удобства стоит активировать.
Выбор режима экспорта. Есть три режима экспорта:
Send to Unreal — напрямую отправляет экспортируемый объект на импорт движок через временно создаваемый FBX-файл.
Export to Disk — сохраняет FBX в указанный каталог.
Both — две опции одновременно.
Примечание: Опции FBX настраиваются в панели аддона в разделе Export.
Настройка путей экспорта.
Mesh Folder (Unreal) — указать путь для экспорта статичной геометрии. Под /Game подразумевается каталог Content (корневой каталог для контента в проекте) открытого в движке проекта. Далее подразумевается путь до конкретного подкаталога внутри Content. Если не поменять путь, то автоматически будут созданы каталоги untitled_category/untitled_asset.
Для Animation Folder (Unreal) и Skeleton Asset (Unreal) — всё аналогично. Здесь стоит упомянуть, что для скелета не требуется указывать путь в том случае, если устраивает, что он будет сохранён в тот же каталог, что и skeletal mesh.
Вкладка Export.
Export all actions — экспортировать все Action из сцены. Удобнее указывать конкретные каналы в NLA, поэтому лучше отключить.
Auto stash active action — позволяет в NLA не создавать каналы для каждого Action вручную. При экспорте это будет сделано автоматически. Лучше создавать самостоятельно — отключить.
Auto sync control NLA strips to source — при использовании «UE to Rigify» при активации «Send to Unreal» синхронизирует NLA каналы из source rig с каналами в control rig.
Use object origin — объекты будут экспортированы со своим origin, а не с world origin. Для экспорта одиночных объектов оптимально включить.
Настройки FBX в аддоне.
Тот самый промежуточный FBX, который так же можно сохранить на накопитель с опциями Export to Disk и Both.
Настройки скрыты в выпадающем списке:
Стандартные настройки выглядят так:
Для основной массы случаев, настройки оптимальные, можно ничего не менять.
По вкладкам Import и Validations всё очевидно из описания пунктов, можно легко разобраться самостоятельно.

Наконец с настройками покончено. Можно приступить к экспорту.
Кратко об экспорте.
Сначала настраивается сцена, потом объект экспорта добавляется в специальные коллекции. При нажатии кнопки Pipeline / Export / Send to Unreal аддон будет пытаться обнаружить запущенный движок и активный проект, чтобы экспортируемый объект автоматически импортировался в движок. Ниже подготовка и экспорт подробно рассмотрены.
Экспорт статичной геометрии.
Убедиться, что сцена настроена следующим образом:

- В настройках рендера указать 30 FPS для анимации. Это стандартная частота кадров в секунду для анимации в Unreal Engine.
- Unit System: Metric
- Unit Scale: 0,01
Подготовка к экспорту. Базовые коллекции.
Выбор объектов для экспорта завязан на специальные коллекции, которые создаются автоматически после активации аддона. Экспортироваться будут только те объекты, которые находятся в этих коллекциях. Всего три специальные коллекции: Mesh, Rig, Extras.

Mesh — в эту коллекцию добавляется статичная и скелетная геометрия.
Rig — сюда добавляются Armature (скелеты). Стоит отметить, что морфы не требуется добавлять в эти коллекции, достаточно добавить основную геометрию в Mesh, а скелет — в Rig.
Extras — служебная коллекция, обычно не используется.
Подготовка к экспорту. Организация контента.
Объект, материал и текстуры должны иметь адекватные названия, так как они будут импортированы в движок под именами из Blender. Пример:

- Объект называется SM_Cone. Его префикс указывает на то, что это статичная геометрия — Static Mesh.
- Сетка имеет такое же имя, но это не обязательно. Важно только название объекта.
- На сетку назначено два материала: M_Cone_Green и M_Cone_Yellow.
- Текстуры не используются.
Внешний вид объекта:
Экспорт.
Необходимо поместить желаемый к экспорту объект в соответствующую коллекцию. В данном примере экспортируется статичная геометрия, поэтому объект SM_Cone помещён только в коллекцию Mesh:
Для удобства перемещения между коллекциями стоит использовать горячую клавишу M при выделенном объекте:

Примечание: Объект может быть в нескольких коллекциях, если то требуется для личного удобства.
Необходимо запустить движок и проект, в который будет вестись экспорт. После этого можно нажимать заветную кнопку в верхней панели: Pipeline / Export / Send to Unreal
Примечание: Можно экспортировать несколько отдельных объектов за раз.
Если Unreal Engine запущен, открыт желаемый проект и в сетевом экране разблокирован адрес 239.0.0.1:6766, то должна отобразиться полоска компиляции ассета в движке:
Результат в движке:

Объект будет сохранён внутри запущенного проекта по тому пути, который был указан в настройках аддона во вкладке Paths. По умолчанию и в данном примере это /Game/untitled_category/untitled_asset/. Под /Game подразумевается каталог Content в проекте. Получаем, что в каталоге Content будет создан каталог untitled_category и подкаталог untitled_asset, в котором и будет располагаться экспортируемый объект.
Экспорт скелетной геометрии.
При экспорте скелетной геометрии в движок будут импортированы: скелетная сетка, включая материал и текстуры; скелет; анимации; морфы (если есть).
Часть действий аналогична экспорту статичной геометрии, но есть важные отличия.
- Дать нормальное имя объекту и его элементам. Для скелетной геометрии принято использовать префикс SK — Skeletal Mesh. Пример: SK_Cone.
- Для скелета (Armature) имя можно не менять. В движок скелет импортируется с именем объекта и постфиксом Skeleton. Пример: SK_Cone_Skeleton.

- На версии аддона 1.3.7 требуется хотя бы один Action, иначе экспорт скелета и скелетных сеток будет завершаться ошибкой. Можно использовать пустой Action с Fake User.
- Очень желательно называть Action по имени анимации, которая будет использоваться в движке. Для удобства имеет смысл использовать префикс ANIM. Пример: ANIM_Cone_Rot, то есть анимация вращения (rotation). В данном примере это поворот на 360 градусов по оси Z за 60 кадров (2 секунды при 30 FPS).
- Обязательно создать канал в NLA (Nonlinear Animation). Для экспорта конкретной анимации необходимо включить соответствующий канал в NLA, а остальные отключить.
- Длина анимации будет ограничена количеством кадров в канале NLA. Поэтому можно не менять глобальное значение количества кадров для Timeline.

- Добавить скелетные сетки в коллекцию Mesh.
- Добавить скелет в коллекцию Rig.
Теперь можно произвести непосредственный экспорт:
Результат в Unreal Engine:
Процесс экспорта с помощью Send to Unreal звучит сложнее, чем есть на самом деле. Если всё-таки что-то оказалось непонятным, то стоит посмотреть официальные уроки:
From Blender to Unreal Engine 4 – Workflow and Project Set up
Lets see how you can speed up things when working with Blender and UE4.
I faced some problems while making this tutorial and i didn’t go back and redo it, cause it was important to show you how to fix them. Someday you’re going to face same problems too.
Let’s start with Creating New Project in UE4. Create new project -> first person.
Softwares used in this tutorial
Substance Painter 2.4.1
Unreal Engine 4.14.3
Blender setup
Now while UE4 is loading in background you can start Blender and make some shortcuts. Plan is that you can export with just a couple buttons instantly, you are going to use export fbx option so many times.
Select: File -> Export -> FBX (right mouse) and Add Shortcut.

Go into Export -> FBX and do the same with “Export FBX” button located in right top corner.

If you have a gaming mouse it usually got some extra buttons so what i did, i set up couple buttons from my mouse to these export choices.
Make sure you have Units set up as Metric.
Object
First i added Cube.

Then i went into Edit mode and Selected all -> Mark Seam.


Uv Edit mode -> Select all -> UVs -> Pack Islands

Change island margin to 0.03

Object mode -> Add Subdivision Surface modifier

Set view up to 4 and Apply.

And this is how it looks like in Uv mode now.

Add Material. When working with UE4 you should use form like this when naming your materials: “M_NAME” so just add M_ at the start. Name your static meshes like this SM_MyMesh.
With personal projects i only add _M end of the material name and leave meshes without SM_, like this:

Settings
This is how you should save Blender file.
Documents -> Unreal Projects -> MyProject:

And add Folder “Meshes” right here
Documents -> Unreal Projects -> MyProject -> Content:

Save your Blender File:
In Blender Folder.

Export Settings in Blender:


Export it in “Meshes” Folder you created like 5 seconds ago.
Now when you hit “Export FBX”, jump to UE4 and you should see this:
Check “don’t ask again” and press import.

Import settings. Uncheck some things like Auto generate collision and Generate Lightmap UVs, Combine meshes.

Unreal Engine 4
And it should look like this:

One thing i forgot to add was…

Shade Smooth but that is like 3 second job

Now Export it with your shortcut buttons, for me it was just two clicks with my mouse.
It gives you message when it reimports it automatically, all you need to do is just export it in Blender.

Looking really good.

Lightmap
So since we didn’t generate uv map for lights (that button you unchecked in ue4 import settings), we need to make it in Blender.
Select your mesh and go to mesh settings. There you’ll find UV Maps and just press plus button to add a new one.

In Uv edit mode you can take a look at it (follow red arrows):

And how you find it in UE4 (double click the mesh in content browser):

Change “Light map coordinate index” to match channel number:
Note: if you import with 2 uv maps it selects “Channel 1” automatically. In this tutorial we imported with 1 uv map so it selected “Channel 0”.

Q: Why should i build lightmap myself and not use “generate lightmap option”?
A: It’s a very unprofessional way. After all it’s almost as much work as turning that option on in import settings. Once you start knowing how lightmaps work in unreal engine with different shapes, you can find the max quality of your work easily and avoid the error of clusterf*cks coming on your way.
Q: If i edit my mesh in Blender, do i need to re-unwrap lightmap as well as texture uv map?
Lightmap Problem
It may look fine but when you build lighting then you usually see some problems:

So first what i did. I increased Pack Islands margin:

Looks fine after Reimport.

But when i build lighting. It comes back again.

So i ended up doing this:
- First i cleared old Seam
- And made seam in middle
- Unwrapped
- Manually moved them in nice places



After lighting build, it was perfect.

Painting/Texturing
So i opened Substance Painter and made something like this with it:
- Fill Layer
- Material -> Painted Steel


If you’ve been using Import button before, you know exactly how awesome feature this is:

Material node setups.

Where i saved the file.

Well it didn’t do perfect job, some seams are visible.

It was looking fine in this picture though.

That could be fixed by doing the same thing like with lightmap uv. But it’s just extremely hard to paint with any tool, cause of stretching. Changing the UV Projection to Tri-planar in Substance Painter fixes it too.
So here’s the workflow:

You can also import multiple objects in one FBX file, but sometimes when you reimport it duplicates everything and you end up with 2 assets in one object so it’s just much more clean workflow with one object per FBX file.
There’s addon for Blender which does all this work, Google for “blender ue4 tools”.
How To Export Skeletal Animation From Blender To Unreal Engine

Now that you have Unreal Engine and Editor up and running, it’s time to start migrating your digital assets from Blender into the Editor. In this post we will discuss some of the prerequisites for building certain assets in Blender, then exporting and finally importing and setup within Unreal Editor.
Build the model in Blender
In fact, you are not limited to Blender in terms of building your models for Unreal Engine 4 (UE4) however, we will be focusing on Blender as it provides a great deal of versatility in terms of content creation. We will focus on an animated 3D character that will be exported via the FBX file format, then imported into UE4. When building assets such as this for a real-time engine there are certain considerations to take note of. Working with an application such as Blender in conjunction with UE4 requires a certain degree of understanding as to what role each software plays in the production pipeline. In other words, there are certain tasks that Blender performs well that should be completed before a model is exported for UE4. Among these considerations are,
- Topology
- Non-overlapping UV’s
- Texture mapping
- Rigging and Animation
Model Considerations
Topology: Build your models without non-manifold geometry and with edge loops that are placed with consideration for accurate deformation during animation. Although, it will require some experience in getting this right you can start by learning about the basics on this free course.
Non-overlapping UV’s and Texturing: Your model should have it’s UV’s laid out before it is exported from Blender. When unwrapping your model’s UVs to export for a real-time application, its generally best to maximize usage of the 0 to 1 UV texture space, keep your textures square with dimensions between the 4th to 13th power of 2 exponents. You can read more about understanding UV’s here.
Rigging and Animation: Blender has a vast toolset for creating simple to exceptionally complex animations and supporting the content creation process with advanced rigging features. Although you can create animation in UE4 and will certainly encounter times when this is necessary, mastering animation in Blender will certainly be beneficial with regards to raising the quality of your final output significantly. Learning animation is a time-consuming process if this is not in your interests simply utilize readily animated models.
Exporting a Model and Rig
Once you have your model prepped with all the above criteria checked, it’s time to begin the export process. In the interest of keeping things simple, we are not going to focus on export settings and the finer details involved therein. Simply, we will examine the process as an overview in order to equip you with the tools to get an animated character from Blender into Unreal Engine 4. Taking a research-based approach to learning, from that point, will help accelerate your project to the next level.

As mentioned in a previous post, when exporting a model, Location and Rotation transforms should be 0 for all axes.
Scale transforms should be at 1. This is both applicable for the model and for the armature.
When choosing a unit of measurement such as Unit system, Metric or Imperial it would be considered best practices to remain consistent with the same system throughout the entire project. Doing so could contribute towards creating models that are imported at the correct scale, and ultimately save you some time.

You will not require any animation for this first step. All that is required is that the model is bound to the rig and adequately weight painted prior to exporting. With the rig selected go to frame zero, and enter the model’s Rest Position if it is not already in rest pose. If there are any objects in the scene other than the model and rig, such as lights, camera or other objects simply delete them. Ideally, just the 3D model and rig should remain.
With your rig selected enter Pose mode (from the 3D Viewport not Pose Position as opposed to Rest Position i.e. remain in Rest Position) and rename the top-level parent bone, that is the highest bone in the rig’s hierarchy, to Root.

To reiterate on the process we will first be exporting just the model and rig. Once we are happy with how this has imported into UE4 we will then continue to export the animation.
As we are only interested in the Armature and Mesh, select those object types from Blender’s FBX export options dialog. Although if you already deleted all other object types as previously noted then your object types would have been implicitly set.
In the interest of separating animation out of this file, if any already existed, it is recommended to uncheck the Bake Animation setting at first.
When exporting your media to UE4, keeping things as simple as possible is key. Therefore if you are able to create a workflow that enables only exporting Deform Bones successfully then, checking the Only Deform Bones option can help to significantly reduce file sizes and speed up the import/export process.
Bear in mind that if you choose this option for the initial exporting of the character and rig, you should keep this option checked for exporting all remaining animations.
You are now ready to export the file. Save the file to a unique name.
Project Setup

Launch Unreal Editor to configure a new project. If you have not installed UE4 yet start here. Select Game for the type of project and Blank for the Project Template.

Choose Project settings that match your systems capabilities as well as your intended output. You can always change these settings at a later stage. There is no need to include Starter content as we will be importing our own content. We won’t be covering Blueprints in this particular post.
Level Setup

Once you have your project setup, the launcher will exit and the Editor will open .
The primary areas we will be focusing on within the editor are the
Content Browser: This is, by default, located at the bottom of the screen.
Viewport: The viewport is used for a close representation of what your final output may look like. It’s worth, however, noting that your game’s performance should not be measured by that of the viewport’s.
Preview: A preview creates a much more accurate representation of your applications performance and appearance and therefore the final outcome.
From the Content Browser click Add New and choose New Folder. A new folder will appear within the Content Browser. Rename the folder to your liking, it will be used to store the assets you import into your scene.
Import the Mesh and Rig

With the new folder you just created open, click the Import button within the Content Browser. A file dialog will appear, navigate to where you exported your files from Blender.

Select the FBX file you exported with no animation. This file should only contain the 3D mesh and Rig.
You will be presented with FBX Import Options within Unreal Editor. Ensure that Skeletal Mesh and Import Mesh are checked, Import Animations should be unchecked.

If you chose to Export from Blender with Only Deform Bones selected, you may receive a warning within Unreal. This is not an error, it is simply a warning and should be expected due to the noted export configurations. You are free to close the dialog as it will have no impact on your workflow in this instance.

Several new assets will now appear within the Content Browser. Depending on how you exported your asset from Blender, you should as a minimum requirement see the 3D Mesh object, a skeleton (a representation of your Blender Armature), a material node and a physics node.
Import the Animation

At this point you are now ready to begin importing your animation.
From the Content Browser click the Import button again, this time select the FBX you exported with the animation.
It’s worth noting at this point that since you have already imported your 3D mesh, in the interests of keeping your assets at a small and manageable size it is possible to delete the mesh from this file entirely and retain only the Armature with animation. This is something you could have done in Blender before exporting the animation.
Either way you can always simply delete the duplicate 3D mesh from the Unreal Editor Content Browser.

When importing the animation Unreal should be able to detect the rig it applies to. It will, therefore, select the rig, as can be seen from within the FBX Import Options dialog under the Skeleton section. You can also click on the drop-down menu to manually select the appropriate rig.
Ensure that Import Animations is checked this time.

Again you will notice that several new assets have been created. To preview the animation double click the Animation Sequence asset.

To place your animated character into the Level, click and drag the Animated Sequence asset into the Viewport. You will be able to place it on the ground plane.
Create and Edit Materials

Now that you have imported your animated character into your Level, its time to turn your attention to editing it’s materials.
When your 3D mesh was imported by default Unreal would have created a new texture for it.
Simply double click this material from the Content Browser and the Material Editor will open with the noted material loaded for editing.
Let’s now examine a quick material node setup.

Before we start setting up our material you will need some textures to apply to the material. Textures can either be created by hand, from photo references or by baking from Blender. How you choose to create your model’s textures will be determined by the type of outcome in terms of the aesthetic and technical requirements of your project. You can learn more about the texturing process in this free course.
To import your textures into the project simply follow the same procedure for importing any asset, from the Content Browser click Import.

Once your textures have been added to your project it is time to connect them to your model’s material. Double click the material in the Content Browser to open the Material Editor.
Depending on what Shading model you have selected for your material certain material inputs will be available and some not. If your model is of an organic character you could choose the SubSurface shading model, thereby making the SubSurface Material Input available.

In order to add the textures, you imported to the material inputs, hold the “t” button on your keyboard and left-click in an empty area within the material editor’s graph-like background. A new Texture Sample node is created.

In the Texture Base section of your Material details panel (by default on the left-hand side of the screen), you will find a drop-down menu allowing you to select one of the textures you imported. If you are connecting the model’s base color choose your diffuse/color texture, if you are connecting a Normal map choose the Normal map texture you baked from Blender and so forth. You can read more about the different texture types here.

With the correct texture selected you are now ready to connect the texture to your material. There are a variety of different possibilities in terms of how to make this connection but for the sake of simplicity, let’s assume you are attempting to connect a diffuse/color map to your material. In this event click and drag from the Texture Sample RBG output and a connector will appear. Hover over the material’s Base color Input and you will notice a green checkbox appear. This indicates a valid connection. When you see this connection, stop dragging and the connection will be made.

Continue to connect and experiment with other textures in a similar way, until you have connected all of the textures you have imported. You can preview how the changes you make to your material affect your model as you edit your material. Simply click the Apply button in the material editor and position it such that you can see both the material editor and the viewport simultaneously.

Once you are satisfied with your material, click Apply then Save in the Material Editor. You can now close the Material Editor and your your materials will be visible on the model within the current Level.

Exclusive offer for Learners

Jumpstart your learning with this exclusive limited offer for RabbitMacht learners. Get the elephant model used in this post with textures, rig and animation at a phenomenal 50% discount! Apply the coupon code below at checkout and get your Royalty Free model to use in your own commercial and non-commercial projects.