jackyyang09 / Simple-Unity-Audio-Manager

A decentralized audio playing system for Unity, designed for simplicity and built to scale!
https://jackyyang09.github.io/Simple-Unity-Audio-Manager/
MIT License
571 stars 47 forks source link

[Bug] Inspector Bug on Audio Asset missing #36

Closed StinkySteak closed 3 months ago

StinkySteak commented 5 months ago

image

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

  1. Create a sound File Object
  2. Attach an Audio into It
  3. 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

jackyyang09 commented 3 months ago

Sorry for the delay, this issue has now been fixed as of Version 3.0.1