EditorApplication.Beep Manual     Reference     Scripting  
Scripting > Editor Classes > EditorApplication
EditorApplication.Beep

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