Is there a way to play an audio clip in the editor using an editor script? It's part of an editor utility tool that I'm developing.
The way I have it setup now and working is that I'm:
1) Spawning a game object
2) Adding an audio source and its' clip
3) Playing it
4) Destroying the object.
The problem is that Unity detects a change to the scene even though I'm not trying to edit the scene.
This is working for my needs, however, but is there a better way?