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

Can you trigger an event from a state change in Wwise?

+1 投票
Is it possible to receive a state change and then within wwise trigger an event at the time of that state change? Thanks!
最新提问 8月 30, 2018 分类:General Discussion | 用户: Graham H. (160 分)

1个回答

+1 投票
You cannot trigger an event from a state change, but you can trigger a sound's playback using a switch container in continuous mode:
- assign your state group and state to a switch container
- assign the sound you want to trigger to the relevant state in this container
- set the container's Play Mode to continuous

Then at runtime:
- start the switch container early on (maybe from an init event or something), it will be silently waiting
- when your state changes to the desired value, the switch container will play the relevant sound

Hope this helps :)
最新回答 9月 3, 2018 用户: Matthieu B. (790 分)
Merci, Matthieu!

That did it. Thank you.
Cool, glad it worked.
...