UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

Is it possible to export GLTF in WebGL runetime ?

Open OctocatPower opened this issue 3 years ago • 5 comments

Hi, I am actually trying to export a GLTF from WebGL build. When i try it, i got this error : Could not find a part of the path

I find that there is no access to the file system for security reasons. So, i got this error. Solution is to use WWW class to download the file before being able to parse it. But is it possible to aply this ? Important sripts are in a dll so i can't see what is doing in this ...

OctocatPower avatar Jan 31 '22 13:01 OctocatPower

It's possible with this PR which will be merged in 1-2 weeks unless there's concerns:

  • https://github.com/KhronosGroup/UnityGLTF/pull/644

Would be great if you test that out.

hybridherbst avatar Apr 08 '22 09:04 hybridherbst

Hi @OctocatPower, Did you find any solution regarding the same issue.?

Vaigo avatar Sep 23 '22 11:09 Vaigo

Hi @Vaigo, sadly, i don't got the answer ... On my web server, i got the error. But on the client web server, I don't got this error ... Think it's about web server managment but don't know exactly where. If it help, I personnaly used "SaveGLBToByteArray" function.

OctocatPower avatar Sep 23 '22 12:09 OctocatPower

Can you please test from this fork which will be merged back here soon: https://github.com/KhronosGroup/UnityGLTF/issues/641#issuecomment-1092640475

hybridherbst avatar Sep 23 '22 12:09 hybridherbst

Hi @hybridherbst, Which method/Script i need to use to export the Gameobject in webgl?

Vaigo avatar Sep 25 '22 15:09 Vaigo