Back to Babylon Js

Babylon.js Serializers

packages/public/@babylonjs/serializers/readme.md

9.5.2598 B
Original Source

Babylon.js Serializers

Installation

To install using npm:

bash
npm install @babylonjs/core @babylonjs/serializers

Usage

Import and use in your project:

javascript
import { GLTF2Export } from "@babylonjs/serializers/glTF";

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

For more information, see the ES6 support documentation and the glTF exporter documentation.