menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票
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.
问题关闭原因: resolved.
分类:General Discussion | 用户: Leo H. (160 分)
已关闭 用户:Leo H.

1个回答

0 投票
 
已采纳
I suggest you connect the Wwise Profiler to your game to know what's going on.  It should give you more info.
用户: Mathieu J. (Audiokinetic) (7.1k 分)
采纳于 用户:Leo H.
thanks, it seems that I didn't generate the bank correctly.
...