menu
 

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

+3 支持
Hello,

I have a Unity project with includes both server and client setup. I am trying to build with the new dedicated server target on Unity 2021 for the Linux target on macOS.

The build process fails with multiple Wwise namespaces missing. I would preferably like to disable Wwise on the server build to make it as smaller as possible. The unity scene with the server-side does not initialize Wwise or any of its components. Is there a way to disable Wwise for a given target platform?
Kunal S. (130 ポイント) General Discussion

回答 1

0 支持

I know this is old but i got the same problem and maybe there is somebody else having this issue. I solved it by using c# preprocessor directives.

Example:

#if !(UNITY_SERVER)
  AkSoundEngine.PostEvent("Sound", gameObject);
#endif

That way you will exclude that piece of code entirely if you are on dedicated server build target

Tim H. (140 ポイント)
...