Native iOS implementation

I am trying to use the Babylon js on a native iOS project
On the playground there is not an example with a glb file
Is it possible to give me one
Thanks in advance

cc @BabylonNative

Check our docs here: Multiple Platforms | Babylon.js Documentation (

If you have specific questions, feel free to ask here. :wink:

I am sorry but I still not found any specific example
Can you please help me thx

If you follow the steps to build BabylonNative on iOS, the playground will display a simple cube that you can rotate around with touch.
experience.js is the script that is being run. You can change these lines for example to load a .glb instead of creating the cube:

@Cedric gave you an example of BabylonNative running on iOS. I sent you to the docs because it’s not clear what tech you should be using without more information. Using BabylonNative might be right, but it could also be overkill for your scenario.

Thank you very much Cedric
So with my understanding i will not be able to give to the script a dynamic url ?

After adding the function ImportMesh, i get this error:
document.createElement is not a function. (In ‘document.createElement(“a”)’, ‘document.createElement’ is undefined)

Any update please ?

As the banner right on top of the forum shows, many of the team members are on vacation so response times will be slower (and they can never be immediate anyways :upside_down_face: )

Just to confirm, have you followed the exact steps at BabylonNative/ at master · BabylonJS/BabylonNative (, built the Playground demo app without errors, then just changed the experience.js script?

ohh ok sorry
Yes of course everything works fine.
With some glb files i get this error

It seems like the babylonJs is not easy to use for a native iOS app

@Yankelm Can you explain in more detail what you are doing? Are you using Babylon Native? Are you running the playground app? What glb files are working and what are not working? It’s hard to help without more information.

Yes i am using babylon Native.
Yes i am running the playground app.
I get this error:
document.createElement is not a function. (In ‘document.createElement(“a”)’, ‘document.createElement’ is undefined)

@Yankelm we need all the information we can get, as we can’t know what is going on your machine otherwise

@Yankelm a repro is most of the time a way to help us help you :slight_smile:

Please not that Draco and KTX are not supported in native so far.

i get an url that is not working

This is the reason:

  "extensionsUsed": [
  "extensionsRequired": [

We don’t support Draco in Babylon Native yet.

1 Like