Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality. If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers. And always feel free to hit us up on Twitter @MxdRealityDev.

Sound on Airtap

Hello Anyone! Just wanted to know if anyone would know the best process required to initiate an audio file on airtap gesture using the InteractiveMeshCursor? (Simple Click Sound) I currently have InputManager managing all gestures... Thanks in advance!!

Best Answer

Answers

  • holonutholonut
    edited June 2017

    Thank you so much for you answer! I have been playing with a bunch of different ways to play a click sound and what you have given me works with the following:

    public class PlayAudioSource : MonoBehaviour, IInputClickHandler
    // Use this for initialization
    {
    #region IInputClickHandler
    public void OnInputClicked(InputClickedEventData eventData)
    {
    GetComponent< AudioSource >().Play();
    }
    #endregion IInputClickHandler
    }

    It works great if I have an the AudioSource attached to a GameObject. How about just playing the audio clip when it is not attached to a GameObject? Just like a mouse click sound?
    Many Thanks!!

Sign In or Register to comment.