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.

On Sharing Demo - How do I change the shooting sounds?

edited November 2016 in Questions And Answers

I don't understand how the files in the sounds folder are related to the files in the code. They use different names.

Tagged:

Answers

  • Hi @spinteractive,
    You can swap out the audio files by modifying the EnergyOrb prefab. In the Holograms/Support/Orb folder, locate 'EnergyOrb' and then drag it into your scene. Expand 'EnergyOrb' and select 'EnergyOrb.1' In the Inspector, you should see the AudioSource component. It has a reference to the 'Energy_Laser_Fire' sound file, and that is the sound that should play whenever the projectile is launched. Change this to point to your new sound file.

    On the 'Projectile Behavior (Script)' component, you will find references to two other sound files: 'Energy_Laser_Hit' (which is attached to the EnergyOrbFinalImpact prefab), and 'Energy_Laser_Deflect1'. Swap these sound files out with your own, then press the 'Apply' button at the top of the Inspector window to apply the changes to the base prefab object. After that, you can delete the instance object from your scene. The next time that you deploy you app, you should be hear your custom sounds when firing projectiles.

    I hope this helps,
    ~Angela

  • Yes i found it. Thank you

Sign In or Register to comment.