This list will continue to get updated as I discover more tips and tricks for how to integrate audio into Unity! Anyone is welcome to use these codes to learn Wwise themselves.
0. Save Wwise project and generated SoundBanks will automatically show up in Unity! If all else fails, close Unity and reopen it.
1. RTPC, such as Health, Volume or any updating Variables. RTPC’s ID is in ” “.
2. Calling Game events. Game Event’s name is in ” “.
3. The order of your States matter. In this case, Sprinkler sound should play first, then Setting Valve, then finally Set State to On. If I put Set State to On first and then Sprinkler, Sprinkler plays at 0.
4. When calling PostEvent, don’t forget the “gameObject” at the end. It will not be able to identify which it should post the Event to.
5. If it’s not an ambient sound that will be emitted from an object, you don’t have to place the Event into an object to get it to play. This way, sounds won’t just burst out at the beginning of your game. (Since you have to load it by Start, Awake or one of the Collision options).
This was a confusion that I had because I watched a woman integrate sounds onto her cubes as her ball was rolling into them to pick them up. This is not the best way to do this, instead, attaching it on a script that says “AkSoundEngine.PostEvent(“Pickup”, gameObject); is better practice.
5. When working with buttons, if you want a previously playing music to stop, you must add a Stop action to the Event, and make sure that its Scope is set to Global and not GameObject.