'Unity: export to gltf 2.0 format
Is there a way to get a Unity store asset downloaded (consisting of a folder containing FBX model + separate animations in FBX + separate textures in png etc) as a gltf binary?
If so, can someone guide me. Thanks.
Solution 1:[1]
I know this is late to the party, but hopefully it can help someone else in the future.
You can export from Unity to glTF easily using the Plattar glTF Exporter. It does not seem to be possible to export in glB (the binary form), only glTF, though there are tools to convert from glTF to glB, some of them available online.
You can also convert an FBX from ASCII to binary format easily, from within Unity, using the Unity FBX Exporter package, available from the Package Manager.
Solution 2:[2]
I am even later to the party with Blender 2.82, but also for future reference:
- import base fbx model
- rename animation in inspector to base
- import walk fbx model
- rename animation in inspector to walk
- go to animation tab, select dope sheet, then action editor
- select base animation and 'push down'
select walk animation and 'push down'
delete walk model and mesh
export to gltf/glb
check in https://gltf-viewer.donmccurdy.com/
This was tested with Malbers fox model. I can provide a video if needed.
Solution 3:[3]
Use UniVRM. It supports editor time export as well as runtime export. It supports the VRM format, as well as gltf. This is the only asset that supports runtime export out of the box, to my knowledge.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Brinca |
| Solution 2 | dirkk0 |
| Solution 3 | savram |
