- Home /
How do I make my sound work in proper 3D space for VR
So, when my gun fires I play a gunfire sound effect, and I want it to sound like it's actually coming from the position of the gun when the game is played in VR. How do I do this? This is something I clearly need to figure out because I'll obviously want to use this for basically all the sound in my game.
Answer by umbreon89 · Aug 22, 2018 at 04:42 PM
Search for 3D audio in Unity. There are great tutorials on how to implement it. The short answer might be to check out this article about the audio source component: https://docs.unity3d.com/Manual/class-AudioSource.html
Yeah, I figured it out by doing a search on YouTube and found a guy who showed very simply how to use and implement it in a matter of $$anonymous$$utes. Generally speaking, YouTube is by far the best way I've found of getting a clear and understandable example of how to do most of the stuff I'm getting stumped with in Unity--and almost always an order of magnitude more useful than Unity's own documentation or videos. Cheers.
Your answer
![](https://koobas.hobune.stream/wayback/20220612173305im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
3D sound doesn't fade out when moving away from audio source 0 Answers
Set audio clip to 3D in script 1 Answer
3D Sound Max Distance Not Working. 0 Answers
Loading ogg though WWW results in 3D Sound, need as 2D... 3 Answers
help with multiple sounds 0 Answers