Drag and drop with a button

Here is an idea of multiple importing using ‘assetsManager’ and a ‘loadEntity’ function shown with two different drag behaviors.

https://www.babylonjs-playground.com/#YGUADW#17
https://www.babylonjs-playground.com/#YGUADW#18

The idea for this method of multiple imports is an adaptation of PGs from a post in the old forium

After trying to adapt the drag method from the one I was using and a further question it became clear that Use Mesh Behaviors (eg. dragging) - Babylon.js Documentation was the way to go.

1 Like