Script: Local Assets GLTF Example

Local Assets GLTF Example picture
Type
Typescript logo indicatortypescript
Author
matas
Date Created
Jan 24, 2024, 5:01:59 PM
Last Edit Date
Oct 2, 2025, 6:52:40 PM

Project Information

This project contains demo scripts for TypeScript Monaco editor that are used as examples in the "Getting Started" section of the documentation.

View Full Project

Script Code

const start = async () => {
    bitbybit.babylon.scene.useRightHandedSystem({
        use: true,
    });
    const file = await bitbybit.asset.getLocalFile({
        fileName: "BoomBox"
    }) as File;
    await bitbybit.babylon.io.loadAssetIntoScene({
        assetFile: file,
        hidden: false
    });
}

start();