Editor/Utilities/Sound.cs

Editor utility class that plays short editor sound effects. It exposes three static methods that call EditorUtility.PlayRawSound with content paths to WAV files for two failure sounds and one success sound.

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" ) );
	}
}