La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

0 votes
Hello,

I opened my unity project this morning and my Wwise Picker Tab stopped working. Same for all Wwise components, though there's still sound when playing the game.

I can't move it around and the tab is empty.

I tried to reset layout, but that didn't changed anything.

Console shows this error every time I click on the picker tab:

NullReferenceException: Object reference not set to an instance of an object
AkWwisePicker.OnGUI () (at Assets/Wwise/Editor/WwiseWindows/AkWwisePicker.cs:56)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

 When I open project I get 4 errors in the console:

iterator == end
UnityEditor.AssetDatabase:LoadAssetAtPath(String, Type)
AkWwiseProjectInfo:GetData() (at Assets/Wwise/Editor/WwiseWindows/AkWwiseProjectInfo.cs:24)
AkWwiseTreeView:GetExpansionStatus(String) (at Assets/Wwise/Editor/WwiseWindows/AkWwiseTreeView.cs:606)
AkWwiseTreeView:SetRootItem(String, WwiseObjectType) (at Assets/Wwise/Editor/WwiseWindows/AkWwiseTreeView.cs:92)
AkWwisePicker:PopulateTreeview() (at Assets/Wwise/Editor/WwiseWindows/AkWwisePicker.cs:92)
AkWwiseTreeView:SaveExpansionStatus() (at Assets/Wwise/Editor/WwiseWindows/AkWwiseTreeView.cs:570)
AkWwisePicker:OnEnable() (at Assets/Wwise/Editor/WwiseWindows/AkWwisePicker.cs:47)
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)

 

NullReferenceException: Object reference not set to an instance of an object
AkWwiseTreeView.GetExpansionStatus (System.String in_path) (at Assets/Wwise/Editor/WwiseWindows/AkWwiseTreeView.cs:606)
AkWwiseTreeView.SetRootItem (System.String Header, WwiseObjectType ObjType) (at Assets/Wwise/Editor/WwiseWindows/AkWwiseTreeView.cs:92)
AkWwisePicker.PopulateTreeview () (at Assets/Wwise/Editor/WwiseWindows/AkWwisePicker.cs:92)
AkWwiseTreeView.SaveExpansionStatus () (at Assets/Wwise/Editor/WwiseWindows/AkWwiseTreeView.cs:570)
AkWwisePicker.OnEnable () (at Assets/Wwise/Editor/WwiseWindows/AkWwisePicker.cs:47)
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)

iterator == end
UnityEditor.AssetDatabase:LoadAssetAtPath(String, Type)
AkWwiseProjectInfo:GetData() (at Assets/Wwise/Editor/WwiseWindows/AkWwiseProjectInfo.cs:24)
AkWwisePostImportCallback:CheckWwiseGlobalExistance() (at Assets/Wwise/Editor/WwiseSetupWizard/AkWwisePostImportCallback.cs:219)
UnityEditor.EditorApplication:Internal_CallHierarchyWindowHasChanged()

and

NullReferenceException: Object reference not set to an instance of an object
AkWwisePostImportCallback.CheckWwiseGlobalExistance () (at Assets/Wwise/Editor/WwiseSetupWizard/AkWwisePostImportCallback.cs:219)
UnityEditor.EditorApplication.Internal_CallHierarchyWindowHasChanged () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs:251)

 

I re install Unity, doesn't work, I tried uninstalling/resintalling integration package but then all scripts are missing and the installation seems incomplete.

 

Hope someone can help me with this
dans General Discussion par Pierre-Marie B. (100 points)
edité par Pierre-Marie B.

1 Réponse

0 votes
I just encountered a similar error. I resolved it by deleting and then restoring (from my source control) all the wwise files in my unity Assets folder. Didn't track down exactly what was corrupted. I suspect that my actions forced Unity to reimport the files which cleared out whatever was broken. Just forcing reimport on the Assets/Wwise folder and the WwiseSettings.xml files may be able to solve it.
par Devin K. (140 points)
Thanks for your answer.
I resolved this quite the same way, replacing the all the Wwise files in the Unity Assets folder with a backup.
Though reinstalling wwise intergration after uninstalling/deleting did not work in my case...
...