Sound - RosoVRgarden/VRgarden-tutorials GitHub Wiki

VRgarden tutorials: Adding Sound

Introduction

  1. Create an Audio Mixer for your project (you only need one) Go to Assets >  Create > Audio Mixer

  1. Create an empty GameObject > Create Empty

  1. Add a component to the GameObject: Audio Source

4. Import and choose your AudioClip, decide to Play on Awake (off if you trigger the sound through programming) and Loop the sound. For VR, move Spatial Blend to 1 and define the Max Distance (500 is for a background sound, are you using a smaller sound?)

5. In the Output of the Audio Source, choose Master (that’s your Audio Mixer).

⚠️ **GitHub.com Fallback** ⚠️