AudiokineticのコミュニティQ&AはWwiseやStrataのコミュニティ内でユーザ同士が質問・回答をし合うことができるフォーラムです。Audiokineticテクニカルサポートチームからの回答をご希望の場合は、必ず サポートチケットページ をご利用ください。

How to have wwise events that play sound with positioning on DOTS/ECS objects that lack a gameObject?

+1 支持
How to have wwise events that play sound with positioning on DOTS/ECS objects that lack a gameObject?

We are aware that posting an event demand a GameObject , altough how could wwise works with such features. We are evalutating wwise integration into a new project and we would like to know how can we approcach this.

https://unity3d.com/how-to/DOTS-resource-list

Have wwise ever support that Unity Feature ?
Yann M. (110 ポイント) 2021 5/21 質問 General Discussion
I've had some success integrating Wwise with ECS, you'd have to create your own ECS system and call AkSoundEngine.XXX methods directly from your Entities.ForEach. You can get basic sound with the following:

AkSoundEngine.RegisterGameObjInternal(id) (you can treat the Entity struct as an ID)
AkSoundEngine.SetObjectPosition()
AkSoundEngine.PostEvent()

Calling these from ScheduleParallel() seem to work fine too, but I don't know if multithreading is actually supported.

回答 1

+1 支持
Wwise Unity Integration currently doesn't support ECS objects.

Although it's possible to use the low-level part and plug it directly by yourself. We've had good success with this, but it entails a lot of C# hacking.

There are long-term tasks we want to achieve in order to get a full high-speed support for DOTS in low-level, and we're getting there. But like all features such as this, the best bet is to ask your Audiokinetic representative about this, more we have people asking for this, more the priorities will be shifted.
Michel D. (510 ポイント) 2021 5/27 回答
...