Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

How do I get a main theme playing (Unity)

0 votes
Hey guys, bear with me, total n00b here.

So i've got just a very basic Main Menu scenario going on. Nothing fancy, just want to set up a looping Main Theme that plays while you're at the Main Menu.

I've created a wwise project to go with a unity project. I've intergrated wwise and done a connect and capture log, but very little comes through into Wwise.  I've also made a Music event that plays the title track, but, the build doesn't send any game calls out when i start it, so I have no idea how to proceed.

I've also generated a soundbank called music with the event, but Unity doesn't seem to register it. In the AKBank object in Unity, I can't find any banks.

Any help is really well appreciated, hope my question is clear enough. as i said, total n00b
asked May 6, 2020 in General Discussion by Zakarías G. (130 points)

1 Answer

0 votes
 
Best answer
You probably already know the answer to this question,

but in order to get Wwise to play a sound,

you need to set up a snippet of code in Unity that sends the event to tell Wwise to play the sound,

otherwise no matter what you do,

Wwise and Unity will just fall asleep back to back.

To quickly play the events you've set up,

you need a Soundbank in your Unity scene that reads the events you want to play,

and an AkEvent or AkAmbient component to play the events.

Also note that the scene needs to have an AkAudioListener.

Hope this helps!
answered Oct 19, 2020 by Hou Chenzhong (Audiokinetic) (5,990 points)
...