Wwise to Unity Integration Cheat Sheet for Beginners.

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 ” “.

Screen Shot 2018-07-27 at 1.40.36 AM.png

2. Calling Game events. Game Event’s name is in ” “. 

Screen Shot 2018-07-27 at 1.43.21 AM.png

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.Screen Shot 2018-07-28 at 4.24.58 PM.png

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.

Screen Shot 2018-07-28 at 4.27.29 PM.png

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.

Screen Shot 2018-08-16 at 5.19.57 PM.png

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s