Skip to content

How it works

This page follows a level from the right-click in Unreal to the scene opening in Godot, so you can see what UE2GD does at each stage. You don't need any of it to use the plugin, but it explains why exports look the way they do and where the time goes.

The short version: UE2GD does all the conversion inside Unreal, where every asset can be read as Unreal sees it, and writes finished Godot files straight into your project. Godot only has to import the textures.

1. Reading the level

When you pick Export to Godot..., UE2GD first walks the level and makes a list of everything in it: placed meshes, instanced and foliage meshes, landscapes, lights, decals, cameras, text, splines, particle systems, sky, fog and post process. Level instances are opened up so each placement gets its own transform, and with World Partition the foliage in unloaded cells is read too.

Nothing is exported yet. This pass is quick, and it's what the confirmation's size and time estimate is worked out from. If the level sits far from the world's origin, the whole scene is moved back near it here, so Godot doesn't lose precision.

2. Preparing the Godot project

If the target folder isn't a Godot project yet, UE2GD creates one, with the rendering settings the export needs. If it is, the project's own settings are left alone and the export follows them instead (for example whether it uses physical light units, and which Godot version it was saved with, which decides what node types can be used). HTerrain or Terrain3D is copied in when landscapes are exported as one of them.

3. Materials

Godot can't run Unreal's material graphs, so each material is baked: Unreal's own glTF exporter renders the material's inputs (base colour, normal, roughness, metallic, emission, opacity) into flat textures, so even complicated graphs come out looking as they do in Unreal. Before the first bake, every material's textures are loaded fully into memory and held there: Unreal's own bake crashes when a texture is still loading while it waits on one. Materials on a shading model Unreal can't bake properly (Single Layer Water) get UE2GD's water shader (see Water), or, with Water set to None, a plain neutral material, named among the failed ones.

Each baked image is then tidied up on background threads while Unreal carries on baking:

  • maps that are a single colour become a plain value instead of a texture,
  • images are shrunk to the Max texture size you chose,
  • alpha is dropped where the material doesn't need it,
  • each file is saved as WebP or JPEG, whichever is smaller.

Finally a Godot StandardMaterial3D (.tres) is written that uses them. Unlit materials become emission, and emission strength is scaled into Godot's range.

A bake covers the texture's 0-1 square once, so a material that tiles its textures, does UV maths, blends by vertex colour or animates would lose that. Such a material is translated instead, when its graph uses nodes UE2GD knows: the graph becomes a StandardMaterial3D when each map is a texture times a constant at one tiling, and a Godot shader (ShaderMaterial) otherwise, sampling Unreal's own textures; meshes using it keep their vertex colours. Materials that are still baked with something lost are listed in build_report.json under materials_baked_with_losses.

4. Meshes

Each static mesh is exported through Unreal's glTF exporter, then rebuilt by UE2GD:

  1. Welded: Unreal often writes a separate vertex for every triangle corner; identical ones are merged. Faces modelled twice, back to back, are dropped on two-sided materials, where they would z-fight.
  2. Matched to material slots: each part of the mesh gets the material from the right Unreal slot.
  3. Re-centred, if the Mesh origin setting asks for it.
  4. Reduced by the Reduced and Minimal presets, and given LODs by a mesh simplifier that works the way Godot's importer does, with the same distance rule.
  5. Written as a Godot mesh (.res) directly, in Godot's own binary format and compressed vertex layout, with a shadow mesh. Because the file is already finished, Godot's importer never has to touch it.

The same step writes a collision shape for meshes placed on their own (when collision is on) and a variant of the mesh for each set of material overrides used on it. Spline meshes have their bend baked into a mesh of their own.

Meshes are converted two at a time in the background while the textures finish.

5. Foliage and landscape grass

Instanced and foliage meshes become MultiMeshes, grouped into 16 m cells so Godot can skip the ones that are off screen. Each foliage type gets a Foliage3D node that can sway in the wind. The sway is a small shader made from the plant's own material, so it still looks the same, with bending, branch sway and leaf flutter added on top.

Landscape grass doesn't exist as placed meshes in Unreal; Unreal grows it at runtime from the landscape material. UE2GD reads the same grass types and paint-layer weights and places the grass the way Unreal would, then writes it as foliage like the rest.

6. Landscapes

Unreal renders each landscape's heights and holes, chunk by chunk. For Mesh landscapes, each chunk becomes a mesh (with LODs, reduction and collision like any other mesh), and the landscape's final colour is captured from above into a texture, so painted layers show as they do in Unreal. For HTerrain, the heights, up to 4 layers' weights (or the colour) and the normals are written as HTerrain's data files. For Terrain3D, the heights, layer weights and colour are written as Terrain3D region files, so you can keep sculpting and painting in Godot.

7. Skeletal meshes

Skeletal meshes are exported as .glb files with their skeleton and skin. UE2GD writes the .import file next to each one, telling Godot to use UE2GD's materials and to rename the bones with the bone map, and Godot does the rest when it imports.

8. Particles

Python can't see inside a Niagara system directly, so UE2GD copies the system as text (as copying it in the editor does) and reads its emitters, modules and renderers from that. Cascade systems are read through Unreal's Cascade To Niagara Converter plugin. Each emitter becomes a CPUParticles3D, or a GPUParticles3D when Unreal runs it on the GPU, and each system becomes a scene of its own. Sprite materials are turned into small shaders that show the texture, play flipbooks and fade where they meet the scene. Anything the converter doesn't understand is listed in the build report.

9. Lights, sky and environment

Lights are converted close to Godot's default brightness, keeping their relative brightness. Fog, post process and exposure go into a WorldEnvironment. The sky is Sky++ (a sky shader drawn from the sun, from midday to night, with clouds), Godot's default, the level's own HDRI exported from Unreal, or none.

10. Writing the scene

With every asset written, UE2GD writes the level itself as a .tscn: mesh nodes, foliage MultiMeshes, lights, decals, cameras, Label3Ds, splines, physics bodies, particle systems and the WorldEnvironment, all pointing at the files from the earlier steps. Anything it couldn't convert gets a visible placeholder rather than disappearing. The scene is set as the project's main scene.

11. The report, the cache and opening Godot

Every export ends with a build report: what was exported, what was reused, what failed, and how long each stage took.

UE2GD also remembers a fingerprint of every asset it wrote: the asset's file, everything it depends on, and the settings that affect it. Next time, anything whose fingerprint hasn't changed is reused instead of exported again, which is why a second export of the same level is much faster.

Last, if you asked for it, UE2GD runs Godot's import of the new textures and opens the project, ready to play.