Simple-Unity-Audio-Manager
Simple-Unity-Audio-Manager copied to clipboard
[Bug] Inspector Bug on Audio Asset missing
The inspector will not draw if the audio file is missing. Thus we have to go to debug mode to fix it, because anything is not clickable
Steps To Reproduce
- Create a sound File Object
- Attach an Audio into It
- Delete the Audio Asset
NullReferenceException: Object reference not set to an instance of an object
JSAM.JSAMEditor.SoundFileObjectEditor.OnInspectorGUI () (at Library/PackageCache/com.brogrammist.jsam@89243ec951/Editor/SoundFileObjectEditor.cs:291)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <cd89fd1ce037419f95985196f5aeee4d>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Unity Version: 2021.21f1 JSAM: 3.0.0-preview 6