David Catuhe f93e0f46a5 4.1.0-alpha.18 6 лет назад
..
babylon.glTF2Serializer.js d8987e2630 Trigonometry shortcuts #6012 6 лет назад
babylon.glTF2Serializer.js.map d8987e2630 Trigonometry shortcuts #6012 6 лет назад
babylon.glTF2Serializer.min.js d8987e2630 Trigonometry shortcuts #6012 6 лет назад
babylon.objSerializer.js a78a1980b7 Nightly 6 лет назад
babylon.objSerializer.js.map a78a1980b7 Nightly 6 лет назад
babylon.objSerializer.min.js fcf02ec96d Nightly 6 лет назад
babylonjs.serializers.d.ts 66f319a15a Nightly 6 лет назад
babylonjs.serializers.js d8987e2630 Trigonometry shortcuts #6012 6 лет назад
babylonjs.serializers.js.map d8987e2630 Trigonometry shortcuts #6012 6 лет назад
babylonjs.serializers.min.js d8987e2630 Trigonometry shortcuts #6012 6 лет назад
babylonjs.serializers.module.d.ts 66f319a15a Nightly 6 лет назад
package.json f93e0f46a5 4.1.0-alpha.18 6 лет назад
readme-es6.md 2e710a8ebe dedicated es6 readme 6 лет назад
readme.md 241153b81f Readme files for all modules 8 лет назад

readme-es6.md

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 the 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 our ES6 dedicated documentation and the gltf exporter documentation.