How to use the babylonjs-loaders.GLTF2.GLTFLoader function in babylonjs-loaders

To help you get started, we’ve selected a few babylonjs-loaders 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 / tabs / GLTFTab.ts View on Github external
constructor(tabbar: TabBar, inspector: Inspector) {
        super(tabbar, 'GLTF');

        this._inspector = inspector;
        this._panel = Helpers.CreateDiv('tab-panel') as HTMLDivElement;
        this._actions = Helpers.CreateDiv('gltf-actions', this._panel) as HTMLDivElement;
        this._actions.addEventListener('click', event => {
            this._closeDetailsPanel();
        });

        if (SceneLoader && GLTFFileLoader && GLTF2.GLTFLoader) {
            this._addImport();
        }

        if (GLTF2Export) {
            this._addExport();
        }
    }
github BabylonJS / Babylon.js / inspector / src / tabs / GLTFTab.ts View on Github external
public static get IsSupported(): boolean {
        return !!(SceneLoader && GLTFFileLoader && GLTF2.GLTFLoader) || !!GLTF2Export;
    }