Editor/Utilities/Sound.cs

Editor utility class that plays editor sound effects. It exposes three static methods OhFiddleSticks, Failure and Success that call EditorUtility.PlayRawSound with paths resolved via Editor.FileSystem.Content.GetFullPath.

File Access
using Editor;

namespace ShaderGraphPlus.Utilities;

public static class EdtiorSound
{
	public static void OhFiddleSticks()
	{
		EditorUtility.PlayRawSound( Editor.FileSystem.Content.GetFullPath( "sounds/editor/kl_fiddlesticks.wav" ) );
	}

	public static void Failure()
	{
		EditorUtility.PlayRawSound( Editor.FileSystem.Content.GetFullPath( "sounds/editor/kl_fiddlesticks.wav" ) );
	}

	public static void Success()
	{
		EditorUtility.PlayRawSound( Editor.FileSystem.Content.GetFullPath( "sounds/editor/success.wav" ) );
	}
}