I’m working on a project similar to this one : https://playground.babylonjs.com/#AHQEIB#17
How can I acess methods and properties of the imported mesh like position and intersection with other meshes, outside the method when its created ?
Welcome aboard!
You can put it in a global variable, but be aware to access it only when ImportMesh
has finished its work!
You can also use the async/await
construct:
https://playground.babylonjs.com/#AHQEIB#595