The serializedObject should not be used inside OnSceneGUI or OnPreviewGUI. Use the target property directly instead

Hello, today I started to using FMod however I’m getting error when I play the audio in Unity. Audio plays for 1-2 seconds but then suddenly Unity gives error.

Unity 2021.1.7f1
FMod 2.01.10 Build #116632

! image_2021-06-10_130702|690x125

! image_2021-06-10_130734|400x467

Thanks in advance.

If I disable that gameobject, audio stops playing (ofc) and error is gone.

image_2021-06-10_130734

This problem is related to this script. Any solution?

Can you please provide some steps to reproduce the error and send though the entire output log for one of those errors?