joeBImagine Posted November 1, 2017 Share Posted November 1, 2017 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! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 2, 2017 Share Posted November 2, 2017 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 Quote Link to comment Share on other sites More sharing options...
joeBImagine Posted November 2, 2017 Author Share Posted November 2, 2017 Awesome thank you Delta!! You are boon of knowledge!! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.