Jump to content

Understanding FilesInput Class


joeBImagine
 Share

Recommended Posts

I am trying to wrap my head around the differences.  Currently I do understand ImportMesh for the most part (allows you to import a mesh into an existing scene)and how to create a scene, but FilesInput not so much.  Are there any examples (for noobs!) that go into more detail than the documentation?  I have looked at the sandbox version with filesInput, but that does not show a babylon file unless said babylon files has lights and cameras.  And as always, please forgive me if this question has already been asked and answered!

Link to comment
Share on other sites

Hello and no worry there is no dumb question :)

The FilesInput class is used to support Drag'n'Drop and HTML file input element.

var filesInput = new BABYLON.FilesInput(engine, null, sceneLoaded, null, null, null, function () { BABYLON.Tools.ClearLogCache() }, null, sceneError);
filesInput.monitorElementForDragNDrop(canvas);

With this code, you can drag and drop a .babylon file to your canvas to load it

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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