Hi guys, i’m currently working in a project related to sound. I couldn’t found any way to make the OnPreviewGUI to be interactive using an AudioClip as it’s target.
I’m getting pretty close to where i want to reach, but i don’t know how to proceed from now on.
This is what i got:
clipEditor = Editor.CreateEditor(clip);
clipEditor.OnPreviewGUI(GUILayoutUtility.GetRect(300, 50), EditorStyles.whiteLabel);
and this is what i get in the inspector:
When i click on it, the sound starts to play as i want. The only thing i miss is the bar to let me know the current time of the playing sound. How can i do that?
PS: i already tried using clipEditor.OnInteractivePreviewGUI and it shows the same thing.
Thanks,
Murillo.