在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

+1 投票
Hi There,

I am currently being blocked by an inability to select soundbanks, events, or any other Base Type from the Unity Inspector in Unity 2018.1.0f2. When I press the inspector GUI button, I get this error:

NullReferenceException: Object reference not set to an instance of an object
AkUtilities.GetLastRectAbsolute (System.Boolean applyScroll) (at Assets/Wwise/Deployment/API/Handwritten/AkUtilities.cs:653)
AkBaseInspector.OnInspectorGUI () (at Assets/Wwise/Editor/WwiseComponents/AkBaseInspector.cs:128)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, System.Int32 editorIndex, System.Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1295)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

 

And no dropdown picker appears. Anyone run into this?

Thanks,

 

Blake
分类:General Discussion | 用户: Blake J. (880 分)

1个回答

+1 投票
 
已采纳
I added as the first line in GetLastRectAbsolute
return new UnityEngine.Rect(328, 218, 439, 18);

Those value are arbitrary but it will fix the issue while waiting for wwise to release a 2018 version.
用户: Mathieu D. (460 分)
采纳于 用户:Blake J.
Awesome, that worked for me. Thanks a bunch!
...