Help Needed: Exporting Scene from PlayCanvas to FBX or GLTF

Hi everyone,

I’m having trouble exporting my scene from PlayCanvas to FBX or GLB. I have a test project. The old script works but fails with some scenes. I heard there’s a new script for exporting.

Can someone explain how to use the new script? I couldn’t find clear info in the documentation or forum. Used the old script - it doesn’t handle complex scenes well.

Any help would be great. Thanks!

Here’s an example on how to export a hierarchy to GLB at runtime:
https://playcanvas.github.io/#/loaders/gltf-export

It’s not integrated into the Editor though. I’m not sure there’s an example of that.

Thank you for your response. I understand that there isn’t a ready-made script for automatic scene export to FBX or glTF. I found a solution myself by manually iterating through the hierarchy using getAsset, and it has been helpful.

I saw an example using .mjs modules for exporting to GLB at runtime, but I haven’t figured out how to work with them yet. Any further recommendations or detailed guidance on integrating such scripts into the PlayCanvas Editor would be greatly appreciated.

Thank you again for your help!