Overview
I investigated how to get the name of a mesh clicked in Babylon.js, as shown below.

I referenced the following tutorial.
Babylon.js docs
The demo page is as follows.
nakamura196.github.io
The source code for the page is as follows.
nuxt3-babylonjs/pages/8/index.vue at main · nakamura196/nuxt3-babylonjs
Contribute to nakamura196/nuxt3-babylonjs development by creating an account on GitHub.
Implementation
In the following section, a callback variable is passed to createScene. The name fpsCallback might need to be revised.
nuxt3-babylonjs/components/Scene8.vue at 5c33d2e6bcd1681df17f3f12fea3cd68fc645157 · nakamura196/nuxt3-babylonjs
Contribute to nakamura196/nuxt3-babylonjs development by creating an account on GitHub.
Then, in the createScene function, the result of onPointerDown is passed.
nuxt3-babylonjs/scenes/Scene8.js at 5c33d2e6bcd1681df17f3f12fea3cd68fc645157 · nakamura196/nuxt3-babylonjs
Contribute to nakamura196/nuxt3-babylonjs development by creating an account on GitHub.
Summary
There may be better implementation methods, but I hope this is helpful.



Comments
…