I'm having trouble getting events to post and for Event IDs to be found in the Unity Gyms.
Here are the steps I took:
- Clone the Gyms repository
- Make sure the 24.1 branch is checked out
- Integrate Wwise into the Unity project
- Run the .command file (I needed to make it executable first with chmod +x [file path])
- Add Mac platform to Wwise
- Confirm that Wwise SoundBanks folder location was pointing to the appropriate folder in the Unity project (..\Unity\Assets\StreamingAssets\Audio\GeneratedSoundBanks)
- Build SoundBanks
I have already watched the WUOA video going over Unity gyms, Getting Started with Wwise Gyms, and followed the instructions on the Gyms repository.
At first, since the Gyms github page says "The latest three Unity™ LTS versions" are supported, I tried using Unity 6000.0.45f1 (since this was the latest Unity version tested with 24.1.5 – this links to 24.1.6, but it said the same thing when there were 24.1.5 docs), but there were several missing components and way too many errors, so I installed the version the Unity project appeared to be made with, 2021.3.29f1.
When I have Enable Auto-Defined Soundbanks unchecked in Wwise, I get this error when turning on the button in the EssentialAmbient scene:
Wwise: Event ID not found Name: 2932565050 GO: Cylinder (Instance ID: 25930)
UnityEngine.Debug:LogError (object)
AkCallbackManager:PostCallbacks () (at Assets/Wwise/API/Runtime/Handwritten/Common/AkCallbackManager.cs:447)
AkSoundEngineController:LateUpdate () (at Assets/Wwise/MonoBehaviour/Runtime/AkSoundEngineController.cs:84)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:356)
And when turning it off:
Wwise: Event ID not found Name: 2932565050 GO: 25930
UnityEngine.Debug:LogError (object)
AkCallbackManager:PostCallbacks () (at Assets/Wwise/API/Runtime/Handwritten/Common/AkCallbackManager.cs:447)
AkSoundEngineController:LateUpdate () (at Assets/Wwise/MonoBehaviour/Runtime/AkSoundEngineController.cs:84)
AkInitializer:LateUpdate () (at Assets/Wwise/MonoBehaviour/Runtime/AkInitializer.cs:241)
When I have Enable Auto-Defined Soundbanks checked, it complains that I should uncheck "Is in User-Defined SoundBanks" in the AkAmbient component, but that option is grayed-out, so I can't. Briefly looking through the Wwise project soundbanks, the Ambient_Event doesn't appear to be in User-Defined SoundBanks. Here are those errors:
Post Event failed. If working with Autobanks, make sure that the "Is In User Defined SoundBank" setting is properly unchecked. If working with User Defined Soundbanks, make sure to add an AkBank Component.
UnityEngine.Debug:LogError (object)
AK.Wwise.Event:Post (UnityEngine.GameObject) (at Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseEvent.cs:81)
EssentialAmbient_Interact:OnAction () (at Assets/Gyms/1-Essential/EssentialAmbient/EssentialAmbient_Interact.cs:34)
OnOffManager:Interact () (at Assets/Gyms/OnOffManager.cs:45)
UnityEngine.Events.UnityEvent:Invoke ()
ButtonOnOff:Interact () (at Assets/Common/Scripts/Interaction/ButtonOnOff.cs:51)
UnityEngine.Events.UnityEvent:Invoke ()
ButtonProximityInteraction:Update () (at Assets/Common/Scripts/Interaction/ButtonProximityInteraction.cs:61)
WwiseUnity: Could not post event (name: Ambient_Event, ID: 2932565050). Please make sure to load or rebuild the appropriate SoundBank by adding the AkBank Component if working with UserDefinedSoundbank or unchecking the IsInUserDefinedSoundbank checkbox from the Ak.Wwise.Event if working with AutoBanks.
UnityEngine.Debug:LogError (object)
AK.Wwise.Event:VerifyPlayingID (uint) (at Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseEvent.cs:50)
AK.Wwise.Event:Post (UnityEngine.GameObject) (at Assets/Wwise/API/Runtime/WwiseTypes/WwiseTypes/AkWwiseEvent.cs:83)
EssentialAmbient_Interact:OnAction () (at Assets/Gyms/1-Essential/EssentialAmbient/EssentialAmbient_Interact.cs:34)
OnOffManager:Interact () (at Assets/Gyms/OnOffManager.cs:45)
UnityEngine.Events.UnityEvent:Invoke ()
ButtonOnOff:Interact () (at Assets/Common/Scripts/Interaction/ButtonOnOff.cs:51)
UnityEngine.Events.UnityEvent:Invoke ()
ButtonProximityInteraction:Update () (at Assets/Common/Scripts/Interaction/ButtonProximityInteraction.cs:61)
I get tons of warnings, but I figure the thing would at least run without errors. Let me know if you need more info!
Wwise: 2024.1.5.8803
Unity: 2021.3.29f1
OS: macOS Ventura 13.7.5
Edit: Sorry about the formatting – the post looks completely different from how I was editing it