Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

+3 votes
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?
in General Discussion by Kunal S. (130 points)

1 Answer

0 votes

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

by Tim H. (140 points)
...