Hello, I’d like to be able to append models to an existing Babylon scene by drag and dropping GLB files on the canvas. I tried to use FilesInput but it creates a new scene with the dropped file.
Thanks!
You could override:
/**
* Function used when loading the scene file
* @param sceneFile
* @param onProgress
*/
public loadAsync: (sceneFile: File, onProgress: Nullable<(event: ISceneLoaderProgressEvent) => void>) => Promise<Scene> = (sceneFile, onProgress) =>
SceneLoader.LoadAsync("file:", sceneFile, this._engine, onProgress);
on the files input instance to apprendAsync instead of loadAsync ?
1 Like