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.

Why does wwise not generate wwise_IDs.cs natively?

+2 votes
For the Unity integration it seems like Wwise should have an option to generate wwise_IDs.cs directly, either in place of or in addition to the c++ .h file. The current process that requires manually generating the .cs file with python script called from "Convert Wwise Soundbank IDs" seems error prone to setup and use.  Or am I missing something?
asked Aug 8, 2017 in Feature Requests by Chris C. (130 points)
I have been wondering about this for quite some time too!
Also, I find that it generates and saves the file under StreamingAssets which means it isn't included in the code project. Surely the point of this is being able to include the file in the solution and access the IDs within? Or am I also missing something?
Agreed on this. This thread was a while ago but a simple change of being able to specify where the c# file is generated would be big.

It actually wasn't very hard to add some editor code to do this for us.

This is the last part that I added to the wwise convert script.

```
if (success)
        {
            int lastSlash = bankIdHeaderPath.LastIndexOf("/");

            string csharpFilePath = $"{bankIdHeaderPath.Substring(0, lastSlash)}/Wwise_IDs.cs";
            string unityFilePath = csharpFilePath.Substring(csharpFilePath.IndexOf("Assets"));
            string newLocation = "Assets/Scripts/Shared/WwiseIds.cs";

            AssetDatabase.MoveAsset(unityFilePath, newLocation);
        }
```

The success variable is a boolean that is set depending on whether the conversion was successful or not.

Please sign-in or register to answer this question.

...