How to Export Unity assets and load it into three js?

Hi. I would like to export some assets from unity, for example materials and meshes. They end in .asset format.
How can I export these so that I can import the exact same assets into threejs?
Thank you !

I’ve only seen the following related project in the past but unfortunately it is not supported since several years.

Ok. Thank you for your reply !

Unity has an FBX exporter so you could try that

https://docs.unity3d.com/Packages/com.unity.formats.fbx@2.0/manual/exporting.html

Then import it with the three.js FBXLoader or use FBX2GLTF to convert it to glTF.

Then there are a couple of expensive exporters on the Unity store, for example

1 Like

Did you end up solving this problem?? I find myself in a very similar situation, any guidance would be super appreciated!!

Hey, we released Needle Engine into Open Beta two weeks ago :slight_smile:

→ needle.tools :blush:

1 Like

needle.tools seems to be offline

Oh no, apple giving the reach around dipping a smelly little finger in to the mix you recon?

EDIT: my bad looks online and fine on checking… https://needle.tools/

I can imagine though, needle could easily find itself the standardisation of web builds for unity given unity’s way way neglected webgl build tools, if they can find a way to provide unity / apple with secure revenue streams for Web supported builds… As well as continue to support migration to webgpu…

Yeah, might be late to the party with this, but here’s what finally worked for me after, like, a month of it being broken—took me forever to figure out because I’m dumb, lol.

First, in Unity, you gotta export to .fbx. You might need to add the com.unity.formats.fbx package if you haven’t already. Then, click your game object in the Assets directory, go up to the GameObject menu in the top window, and in the dropdown, pick “Export to FBX”—not the one that says “Convert to FBX prefab variant.” That should output an .fbx file.

Now, move that .fbx to Blender. For me, this was the key—it finally didn’t extract and break everything into a million pieces.

Once it’s open in Blender, you convert it to .glb by going to File > Export > glTF Binary (.glb). In the dropdown menu, I just check:

  • “Include/Selected Objects”

  • Make sure “Transform +Y Up” is checked

  • Under “Data > Mesh,” I check Apply Modifiers, UVs, and Normals

  • Under “Data > Material,” I leave it on Export Automatic

  • Then just leave everything else as is

Name your file—it’ll be called “untitled.glb” by default—pick where you want it, and hit “Export glTF 2.0.”

Last step, you can just use that with three.js GLTFLoader and it shouldn’t break a damn thing. Oh, and you can convert .tgas to something WebGL-friendly too, while you’re at it.