Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@babylonjs/serializers

BabylonJS78.4kApache-2.08.9.0TypeScript support: included

Babylon.js Serializers

3D, javascript, html5, webgl, babylon.js

readme

Babylon.js Serializers

Installation instructions

To install using npm :

npm install --save @babylonjs/core @babylonjs/serializers

How to use

Afterwards it can be imported to your project using:

import { GLTF2Export } from '@babylonjs/serializers/glTF';

And used as usual:

GLTF2Export.GLTFAsync(scene, "fileName").then((gltf) => {
    gltf.downloadFiles();
});

For more information you can have a look at our ES6 dedicated documentation and the gltf exporter documentation.