Simple-Unity-Audio-Manager icon indicating copy to clipboard operation
Simple-Unity-Audio-Manager copied to clipboard

[Bug] Inspector Bug on Audio Asset missing

Open StinkySteak opened this issue 1 year ago • 0 comments

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

StinkySteak avatar May 15 '24 05:05 StinkySteak