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!