menu
 

La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

0 votes
I try to use AkState to implement BGM in my unity project.

I create an empty unity gameobject into scene under MainCamera , then drag a state from wwise picker onto the gameobjec.

The trigger on value is Start, state group and value was the pick up one.

When I start to play the scene , it comes no sounds . I also tried to use aksoundengine.registergameobject for the targetObj or call the aksoundengine.setstate(gourpid, stateid) in the c# script at runtime . but it seem doesn't worl.

 

The AK terminator and initializer works fine,  AkSoundEngine.LoadBank and AkSoundEngine.PostEvent works fine too.

Is there anything I need to check before I use "states" ? or Cound you support some sample project for unity using states ?
 

My unity version is 4.3.2f  , wwise version is 2013.2.9 build 4872

Thanks.

Leo.
fermée avec la mention: resolved.
dans General Discussion par Leo H. (160 points)
fermés par Leo H.

1 Réponse

0 votes
 
Meilleure réponse
I suggest you connect the Wwise Profiler to your game to know what's going on.  It should give you more info.
par Mathieu J. (Audiokinetic) (7.1k points)
sélectionné par Leo H.
thanks, it seems that I didn't generate the bank correctly.
...