Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorApplication.Beep

Switch to Manual
public static function Beep(): void;

Description

Plays system beep sound.

	// Play sound on mouse down event 
	function OnGUI () {
		if (Event.current.type == EventType.MouseDown)
			EditorApplication.Beep();
	}