Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

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.

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, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

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

  • Options

    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

  • Options

    Yes i found it. Thank you

Sign In or Register to comment.