Jump to content

drag and dropping .babylon file


Recommended Posts

I am pretty sure it's implemented somewhere in the documentation but I couldn't find it.  How can we drag and drop a .babylon scene created with blender (with an animation)?  For example I have an animated .babylon scene and I want to drag and drop a new babylon scene (with animation) without to make change in notepad ++..


Thanx in advance,



Link to comment
Share on other sites

The function fileAdded() here https://github.com/BabylonJS/Extensions/blob/master/MaterialEditor/MaterialEditor/canvas/CanvasController.ts is taking a zip file added as a HTML input, reading it, and running the public loadScene(sceneBlob: string, binaries: Array<any>) in https://github.com/BabylonJS/Extensions/blob/master/MaterialEditor/MaterialEditor/canvas/CanvasService.ts

Using this for drag and drop would work the same, the only difference is the input method.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...