I am working in the editor would like to trigger a sound by clicking on a mesh.
Here is what I have attempted that hasn’t produced the desired results:
“Add sound” from top menu, load “biff.mp3” from “scene” folder into assets. The sound loads fine and I can play it from the inspector.
Click “attach to mesh” in the sound inspector, and attach to the mesh “dotsphere” (not sure what this did, nothing seemed to happen)
Create a new script “MeshSound” and paste in code from this example where the script says “// Your code…” (edited to use “biff.mp3”) & attached this to desired mesh
Ran example and the sound script didn’t seem to do anything, the the other “play” script for animation works fine.
Thanks in advance for your help, Babylon denizens!
Thanks for reporting that issue! As I can see, you are using the Editor v3 and it looks like you just started using the Editor for you project.
What I suggest now is that you give a try to the Editor v4. It has been made to be more powerful/stable than the v3 and I’m pretty sure it’ll more fit your needs