How to use babylonjs-serializers - 2 common examples

To help you get started, we’ve selected a few babylonjs-serializers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github BabylonJS / Babylon.js / inspector / src / components / actionTabs / tabs / toolsTabComponent.tsx View on Github external
exportGLTF() {
        const scene = this.props.scene;
        this._isExporting = true;
        this.forceUpdate();

        GLTF2Export.GLBAsync(scene, "scene", {
            shouldExportNode: (node) => this.shouldExport(node)
        }).then((glb: GLTFData) => {
            glb.downloadFiles();
            this._isExporting = false;
            this.forceUpdate();
        }).catch(reason => {      
            this._isExporting = false;
            this.forceUpdate();
        });
    }
github BabylonJS / Babylon.js / inspector / src / tabs / GLTFTab.ts View on Github external
button.addEventListener('click', () => {
            GLTF2Export.GLBAsync(this._inspector.scene, name.value || "scene", {
                shouldExportTransformNode: transformNode => !GLTFTab._IsSkyBox(transformNode)
            }).then((glb) => {
                glb.downloadFiles();
            });
        });
    }

babylonjs-serializers

Babylon.js Serializers =====================

Apache-2.0
Latest version published 3 days ago

Package Health Score

87 / 100
Full package analysis